https://gcc.gnu.org/g:c47454bc7062c0171cfe785136d3966ef671104b
commit r17-1777-gc47454bc7062c0171cfe785136d3966ef671104b Author: Xi Ruoyao <[email protected]> Date: Tue Jun 23 21:45:47 2026 +0800 Revert "mips: fix unintialized operand use in sync_{old,new}_<optab>_12" This reverts commit 1d6d7e982a982724ed8d9efc7eaa0f38638f8027. Diff: --- gcc/config/mips/sync.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gcc/config/mips/sync.md b/gcc/config/mips/sync.md index beabb7fe555e..1d0a977066b8 100644 --- a/gcc/config/mips/sync.md +++ b/gcc/config/mips/sync.md @@ -179,7 +179,7 @@ (unspec_volatile:SI [(match_operand:SI 2 "register_operand" "d") (match_operand:SI 3 "register_operand" "d") - (atomic_hiqi_op:SI (match_dup 1) + (atomic_hiqi_op:SI (match_dup 0) (match_operand:SI 4 "reg_or_0_operand" "dJ"))] UNSPEC_SYNC_OLD_OP_12)) (clobber (match_scratch:SI 5 "=&d"))] @@ -220,7 +220,7 @@ [(match_operand:SI 1 "memory_operand" "+ZC") (match_operand:SI 2 "register_operand" "d") (match_operand:SI 3 "register_operand" "d") - (atomic_hiqi_op:SI (match_dup 1) + (atomic_hiqi_op:SI (match_dup 0) (match_operand:SI 4 "reg_or_0_operand" "dJ"))] UNSPEC_SYNC_NEW_OP_12)) (set (match_dup 1) @@ -228,8 +228,7 @@ [(match_dup 1) (match_dup 2) (match_dup 3) - (atomic_hiqi_op:SI (match_dup 1) (match_dup 4))] - UNSPEC_SYNC_NEW_OP_12))] + (match_dup 4)] UNSPEC_SYNC_NEW_OP_12))] "GENERATE_LL_SC" { return mips_output_sync_loop (insn, operands); } [(set_attr "sync_insn1" "<insn>")
