Skip to content

Commit 4924513

Browse files
Hao SunPengfei Li
authored andcommitted
8265263: AArch64: Combine vneg with right shift count
Reviewed-by: adinn, dlong
1 parent ea19114 commit 4924513

File tree

4 files changed

+809
-374
lines changed

4 files changed

+809
-374
lines changed

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,9 @@ public:
13111311
// predicate controlling translation of CompareAndSwapX
13121312
bool needs_acquiring_load_exclusive(const Node *load);
13131313

1314+
// Assert that the given node is not a variable shift.
1315+
bool assert_not_var_shift(const Node* n);
1316+
13141317
// predicate controlling addressing modes
13151318
bool size_fits_all_mem_uses(AddPNode* addp, int shift);
13161319
%}
@@ -1725,6 +1728,12 @@ bool needs_acquiring_load_exclusive(const Node *n)
17251728
return true;
17261729
}
17271730

1731+
// Assert that the given node is not a variable shift.
1732+
bool assert_not_var_shift(const Node* n) {
1733+
assert(!n->as_ShiftV()->is_var_shift(), "illegal variable shift");
1734+
return true;
1735+
}
1736+
17281737
#define __ _masm.
17291738

17301739
// advance declarations for helper functions to convert register

0 commit comments

Comments
 (0)