From 026a63d0d941abc50b4ecbecca1668a93fa6963a Mon Sep 17 00:00:00 2001 From: Harshit Dhiman Date: Fri, 17 Jul 2026 11:08:58 +0000 Subject: [PATCH] 8388285: [s390] compP_reg_mem is missing the barrier_data() == 0 predicate Reviewed-by: amitkumar, aph --- src/hotspot/cpu/s390/s390.ad | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hotspot/cpu/s390/s390.ad b/src/hotspot/cpu/s390/s390.ad index 256e39b03c2..5f33cf4fa77 100644 --- a/src/hotspot/cpu/s390/s390.ad +++ b/src/hotspot/cpu/s390/s390.ad @@ -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" %}