[committed] Fix frv.cpu UNIT attribute for cfmovs
Richard Sandiford
rsandifo@redhat.com
Fri Aug 27 09:41:00 GMT 2004
frv.cpu said that cfmovs can only issue to units F0 or F1, but it
can really issue to any F unit (meaning F0...F3 on the FR550).
Patched approved off-line by Dave Brolley. Tested on frv-elf and applied.
Richard
PS. Only opcodes/frv-desc.c contains functional changes, but regenerating
opcodes adds 2004 to the copyright date of all four files.
cpu/
* frv.cpu (cfmovs): Change UNIT attribute to FMALL.
opcodes/
* frv-desc.[ch], frv-opc.[ch]: Regenerated.
gas/testsuite/
* gas/frv/fr550-pack1.[sd]: New test.
* gas/frv/allinsn.exp: Run it.
Index: cpu/frv.cpu
===================================================================
RCS file: /cvs/src/src/cpu/frv.cpu,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -p -r1.19 -r1.20
--- cpu/frv.cpu 1 Mar 2004 10:11:39 -0000 1.19
+++ cpu/frv.cpu 27 Aug 2004 09:31:59 -0000 1.20
@@ -7122,7 +7122,7 @@
((fr500 (unit u-fr2fr)))
)
-(conditional-register-transfer cfmovs OP_6C OPE4_0 FRj FRk FM01
+(conditional-register-transfer cfmovs OP_6C OPE4_0 FRj FRk FMALL
((FR500-MAJOR F-1) (FR550-MAJOR F-2)
(MACH simple,tomcat,fr500,fr550,frv))
((fr500 (unit u-fr2fr)) (fr550 (unit u-fr2fr)))
Index: gas/testsuite/gas/frv/allinsn.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/frv/allinsn.exp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -p -r1.4 -r1.5
--- gas/testsuite/gas/frv/allinsn.exp 1 Mar 2004 10:11:41 -0000 1.4
+++ gas/testsuite/gas/frv/allinsn.exp 27 Aug 2004 09:32:02 -0000 1.5
@@ -27,4 +27,6 @@ if [istarget frv*-*-*] {
run_list_test "fr450-insn" "-mcpu=fr400"
run_list_test "fr450-insn" "-mcpu=fr500"
run_list_test "fr450-media-issue" "-mcpu=fr450"
+
+ run_dump_test "fr550-pack1"
}
--- /dev/null Fri Apr 23 00:21:55 2004
+++ gas/testsuite/gas/frv/fr550-pack1.s Fri Aug 27 10:28:02 2004
@@ -0,0 +1,4 @@
+ cfmovs.p fr0,fr4,cc0,0
+ cfmovs.p fr1,fr5,cc0,0
+ cfmovs.p fr2,fr6,cc0,0
+ cfmovs fr3,fr7,cc0,0
--- /dev/null Fri Apr 23 00:21:55 2004
+++ gas/testsuite/gas/frv/fr550-pack1.d Fri Aug 27 10:28:02 2004
@@ -0,0 +1,12 @@
+#as: -mcpu=fr550
+#objdump: -dr
+
+.*: file format elf32-frv(|fdpic)
+
+Disassembly of section \.text:
+
+00000000 <.*>:
+.*: 09 b0 00 00 cfmovs\.p fr0,fr4,cc0,0x0
+.*: 0b b0 00 01 cfmovs\.p fr1,fr5,cc0,0x0
+.*: 0d b0 00 02 cfmovs\.p fr2,fr6,cc0,0x0
+.*: 8f b0 00 03 cfmovs fr3,fr7,cc0,0x0
More information about the Binutils
mailing list