Skip to content

Commit

Permalink
8312979: Fix assembler_aarch64.hpp after JDK-8311847
Browse files Browse the repository at this point in the history
Reviewed-by: dlong
  • Loading branch information
coleenp committed Jul 25, 2023
1 parent 78a8a99 commit 2d05d35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hotspot/cpu/aarch64/assembler_aarch64.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

1 comment on commit 2d05d35

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.