mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-06 00:18:34 +00:00
8312979: Fix assembler_aarch64.hpp after JDK-8311847
Reviewed-by: dlong
This commit is contained in:
parent
78a8a99d99
commit
2d05d3545c
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user