8312979: Fix assembler_aarch64.hpp after JDK-8311847

Reviewed-by: dlong
This commit is contained in:
Coleen Phillimore 2023-07-25 21:33:54 +00:00
parent 78a8a99d99
commit 2d05d3545c

View File

@ -654,7 +654,8 @@ class Address {
if (offset % vl == 0) {
// Convert address offset into sve imm offset (MUL VL).
int64_t sve_offset = offset / vl;
if (((-(1 << (shift - 1))) <= sve_offset) && (sve_offset < (1 << (shift - 1)))) {
int32_t range = 1 << (shift - 1);
if ((-range <= sve_offset) && (sve_offset < range)) {
// sve_offset can be encoded
return true;
}