This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix MIPS umulsidi3_32bit_r4000 asm output
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 03 Oct 2004 21:16:32 +0100
- Subject: [committed] Fix MIPS umulsidi3_32bit_r4000 asm output
Noticed this goof while double-checking the MIPS macroisation stuff.
Patch tested on mipsisa64-elf. It fixes gcc.c-torture/execute/20001108-1.c
(among others) when -mfix-r4000 is used. Applied to mainline.
Richard
* config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
Index: config/mips/mips.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.md,v
retrieving revision 1.308
diff -u -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.308 mips.md
--- config/mips/mips.md 25 Sep 2004 06:35:21 -0000 1.308
+++ config/mips/mips.md 3 Oct 2004 20:06:32 -0000
@@ -1418,7 +1418,7 @@ (define_insn "<u>mulsidi3_32bit_r4000"
(any_extend:DI (match_operand:SI 2 "register_operand" "d"))))
(clobber (match_scratch:DI 3 "=x"))]
"!TARGET_64BIT && TARGET_FIX_R4000"
- "mult\t%1,%2\;mflo\t%L0;mfhi\t%M0"
+ "mult<u>\t%1,%2\;mflo\t%L0;mfhi\t%M0"
[(set_attr "type" "imul")
(set_attr "mode" "SI")
(set_attr "length" "12")])