8321215: Incorrect x86 instruction encoding for VSIB addressing mode

Reviewed-by: shade, thartmann
This commit is contained in:
Sandhya Viswanathan 2023-12-05 16:35:36 +00:00
parent 61d0db3838
commit 027b5dbb6a

@ -316,7 +316,7 @@ class Address {
}
bool xmmindex_needs_rex() const {
return _xmmindex->is_valid() && _xmmindex->encoding() >= 8;
return _xmmindex->is_valid() && ((_xmmindex->encoding() & 8) == 8);
}
relocInfo::relocType reloc() const { return _rspec.type(); }