]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
MIPS/GAS: Omit LI 0 for condition trap
authorYunQiang Su <syq@gcc.gnu.org>
Wed, 19 Jun 2024 16:52:25 +0000 (00:52 +0800)
committerYunQiang Su <syq@debian.org>
Fri, 12 Jul 2024 10:19:35 +0000 (18:19 +0800)
commitbfa257b407270d1c808b31fbd97da779e0fd20d2
treedbcac110dbe70c90460f43654aa556c9077a3856
parentd49f2dd78b08efa4e1ee51f5df5058846c2eb4fa
MIPS/GAS: Omit LI 0 for condition trap

MIPSr6 removes condition trap instructions with imm, so we expand
the instruction like "tne $2,IMM" to
li $at,IMM
tne $2,$at
While if IMM is 0, we can use
tne $2,$zero
only.
gas/config/tc-mips.c
gas/testsuite/gas/mips/cond-trap-imm-zero.d [new file with mode: 0644]
gas/testsuite/gas/mips/cond-trap-imm-zero.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp