diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-03-31 16:48:54 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-03-31 16:48:54 -0800 |
commit | 9b190d1c887a853a9c3a16ffd5f95e65c0576127 (patch) | |
tree | 6e8f402188707e4a34aa727e8c8c51a053316b12 /gcc/config | |
parent | 850980198ab9507b066a5dfcbe9aadb524d27424 (diff) | |
download | gcc-9b190d1c887a853a9c3a16ffd5f95e65c0576127.zip gcc-9b190d1c887a853a9c3a16ffd5f95e65c0576127.tar.gz gcc-9b190d1c887a853a9c3a16ffd5f95e65c0576127.tar.bz2 |
(addsi3_internal): Don't output subtract.
(subsi3_internal): Don't output add.
(smulsi3_highpart, umulsi3_highpart): Add missing third operand to
mips_move_1word call.
From-SVN: r6933
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/mips/mips.md | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md index ed7db36..618fddb 100644 --- a/gcc/config/mips/mips.md +++ b/gcc/config/mips/mips.md @@ -358,12 +358,7 @@ (plus:SI (match_operand:SI 1 "reg_or_0_operand" "dJ") (match_operand:SI 2 "arith_operand" "dI")))] "GET_CODE (operands[2]) != CONST_INT || INTVAL (operands[2]) != -32768" - "* -{ - return (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) < 0) - ? \"subu\\t%0,%z1,%n2\" - : \"addu\\t%0,%z1,%2\"; -}" + "addu\\t%0,%z1,%2" [(set_attr "type" "arith") (set_attr "mode" "SI") (set_attr "length" "1")]) @@ -600,12 +595,7 @@ (minus:SI (match_operand:SI 1 "reg_or_0_operand" "dJ") (match_operand:SI 2 "arith_operand" "dI")))] "GET_CODE (operands[2]) != CONST_INT || INTVAL (operands[2]) != -32768" - "* -{ - return (GET_CODE (operands[2]) == CONST_INT && INTVAL (operands[2]) < 0) - ? \"addu\\t%0,%z1,%n2\" - : \"subu\\t%0,%z1,%2\"; -}" + "subu\\t%0,%z1,%2" [(set_attr "type" "arith") (set_attr "mode" "SI") (set_attr "length" "1")]) @@ -963,7 +953,7 @@ xoperands[1] = gen_rtx (REG, SImode, HI_REGNUM); output_asm_insn (\"mult\\t%1,%2\", operands); - output_asm_insn (mips_move_1word (xoperands, insn), xoperands); + output_asm_insn (mips_move_1word (xoperands, insn, TRUE), xoperands); return \"\"; }" [(set_attr "type" "imul") @@ -1041,7 +1031,7 @@ xoperands[1] = gen_rtx (REG, SImode, HI_REGNUM); output_asm_insn (\"multu\\t%1,%2\", operands); - output_asm_insn (mips_move_1word (xoperands, insn), xoperands); + output_asm_insn (mips_move_1word (xoperands, insn, FALSE), xoperands); return \"\"; }" [(set_attr "type" "imul") |