https://gcc.gnu.org/g:390631c54a8998cda5196a0f50fef182f37f2f9a
commit r16-9159-g390631c54a8998cda5196a0f50fef182f37f2f9a Author: Xi Ruoyao <[email protected]> Date: Tue Jun 23 21:47:42 2026 +0800 Revert "mips: fix unintialized operand use in sync_{old,new}_<optab>_12" This reverts commit 4dd219861faf614b20aea0299d91565009ea75b0. 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>")
