This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Fix MIPS suxc1
- From: "Fu, Chao-Ying" <fu at mips dot com>
- To: <binutils at sourceware dot org>
- Date: Tue, 13 Jan 2009 18:18:10 -0800
- Subject: [PATCH] Fix MIPS suxc1
Hi All,
For "suxc1", we should set the flag of FP_D, because "suxc1"
uses double precision floating point resources. (Similar to "luxc1".)
Is this patch ok? Thanks!
Regards,
Chao-ying
opcodes/ChangeLog
2009-01-13 Chao-ying Fu <fu@mips.com>
* mips-opc.c (suxc1): Add the flag of FP_D.
Index: mips-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/mips-opc.c,v
retrieving revision 1.71
diff -u -p -r1.71 mips-opc.c
--- mips-opc.c 6 Nov 2008 19:40:10 -0000 1.71
+++ mips-opc.c 14 Jan 2009 02:02:34 -0000
@@ -1295,7 +1295,7 @@ const struct mips_opcode mips_builtin_op
{"subu", "D,S,T", 0x45800001, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, IL2E },
{"subu", "D,S,T", 0x4b00000d, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, IL2F },
{"suspend", "", 0x42000022, 0xffffffff, 0, 0, V1 },
-{"suxc1", "S,t(b)", 0x4c00000d, 0xfc0007ff, SM|RD_S|RD_t|RD_b, 0, I5_33|N55},
+{"suxc1", "S,t(b)", 0x4c00000d, 0xfc0007ff, SM|RD_S|RD_t|RD_b|FP_D, 0, I5_33|N55},
{"sw", "t,o(b)", 0xac000000, 0xfc000000, SM|RD_t|RD_b, 0, I1 },
{"sw", "t,A(b)", 0, (int) M_SW_AB, INSN_MACRO, 0, I1 },
{"swc0", "E,o(b)", 0xe0000000, 0xfc000000, SM|RD_C0|RD_b, 0, I1 },