8388285: [s390] compP_reg_mem is missing the barrier_data() == 0 predicate

Reviewed-by: amitkumar, aph
This commit is contained in:
Harshit Dhiman 2026-07-17 11:08:58 +00:00 committed by Amit Kumar
parent a15f693cb8
commit 026a63d0d9

View File

@ -8786,6 +8786,7 @@ instruct compP_decode_reg_imm0(flagsReg cr, iRegN op1, immP0 op2) %{
instruct compP_reg_mem(iRegP dst, memory src, flagsReg cr)%{
match(Set cr (CmpP dst (LoadP src)));
predicate(n->in(2)->as_Load()->barrier_data() == 0);
ins_cost(MEMORY_REF_COST);
size(Z_DISP3_SIZE);
format %{ "CLG $dst, $src\t # ptr" %}