Skip to content

Commit 23d79fe

Browse files
Zhaokun Xieshipilev
authored andcommitted
8361892: AArch64: Incorrect matching rule leading to improper oop instruction encoding
Backport-of: dccb1782ec35d1ee95220a237aef29ddfc292cbd
1 parent cdf8da6 commit 23d79fe

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/hotspot/cpu/aarch64/aarch64.ad

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3454,10 +3454,6 @@ encode %{
34543454
__ mov(dst_reg, (uint64_t)1);
34553455
%}
34563456

3457-
enc_class aarch64_enc_mov_byte_map_base(iRegP dst, immByteMapBase src) %{
3458-
__ load_byte_map_base($dst$$Register);
3459-
%}
3460-
34613457
enc_class aarch64_enc_mov_n(iRegN dst, immN src) %{
34623458
Register dst_reg = as_Register($dst$$reg);
34633459
address con = (address)$src$$constant;
@@ -4554,20 +4550,6 @@ operand immP_1()
45544550
interface(CONST_INTER);
45554551
%}
45564552

4557-
// Card Table Byte Map Base
4558-
operand immByteMapBase()
4559-
%{
4560-
// Get base of card map
4561-
predicate(BarrierSet::barrier_set()->is_a(BarrierSet::CardTableBarrierSet) &&
4562-
SHENANDOAHGC_ONLY(!BarrierSet::barrier_set()->is_a(BarrierSet::ShenandoahBarrierSet) &&)
4563-
(CardTable::CardValue*)n->get_ptr() == ((CardTableBarrierSet*)(BarrierSet::barrier_set()))->card_table()->byte_map_base());
4564-
match(ConP);
4565-
4566-
op_cost(0);
4567-
format %{ %}
4568-
interface(CONST_INTER);
4569-
%}
4570-
45714553
// Float and Double operands
45724554
// Double Immediate
45734555
operand immD()
@@ -6854,20 +6836,6 @@ instruct loadConP1(iRegPNoSp dst, immP_1 con)
68546836
ins_pipe(ialu_imm);
68556837
%}
68566838

6857-
// Load Byte Map Base Constant
6858-
6859-
instruct loadByteMapBase(iRegPNoSp dst, immByteMapBase con)
6860-
%{
6861-
match(Set dst con);
6862-
6863-
ins_cost(INSN_COST);
6864-
format %{ "adr $dst, $con\t# Byte Map Base" %}
6865-
6866-
ins_encode(aarch64_enc_mov_byte_map_base(dst, con));
6867-
6868-
ins_pipe(ialu_imm);
6869-
%}
6870-
68716839
// Load Narrow Pointer Constant
68726840

68736841
instruct loadConN(iRegNNoSp dst, immN con)

0 commit comments

Comments
 (0)