Skip to content

Commit

Permalink
add comment to ::stmxcsr and ::ldmxcsr
Browse files Browse the repository at this point in the history
  • Loading branch information
steveatgh committed May 21, 2024
1 parent 1d6ecba commit 5b6fdce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hotspot/cpu/x86/assembler_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2662,6 +2662,9 @@ void Assembler::jmpb_0(Label& L, const char* file, int line) {
}

void Assembler::ldmxcsr( Address src) {
// This instruction should be SSE encoded with the REX2 prefix when an
// extended GPR is present. To be consistent when UseAPX is enabled, use
// this encoding even when an extended GPR is not used.
if (UseAVX > 0 && !UseAPX ) {
InstructionMark im(this);
InstructionAttr attributes(AVX_128bit, /* vex_w */ false, /* legacy_mode */ true, /* no_mask_reg */ true, /* uses_vl */ false);
Expand Down Expand Up @@ -6394,6 +6397,9 @@ void Assembler::sqrtss(XMMRegister dst, Address src) {
}

void Assembler::stmxcsr(Address dst) {
// This instruction should be SSE encoded with the REX2 prefix when an
// extended GPR is present. To be consistent when UseAPX is enabled, use
// this encoding even when an extended GPR is not used.
if (UseAVX > 0 && !UseAPX ) {
assert(VM_Version::supports_avx(), "");
InstructionMark im(this);
Expand Down

0 comments on commit 5b6fdce

Please sign in to comment.