This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS pseudo-insns and Re: Patch to add -mfp32 support toMIPS gas
- To: r dot sandiford at redhat dot com
- Subject: Re: MIPS pseudo-insns and Re: Patch to add -mfp32 support toMIPS gas
- From: cgd at broadcom dot com
- Date: 03 Aug 2001 17:58:36 -0700
- cc: binutils at sources dot redhat dot com,echristo at redhat dot com
- References: <20010724223714.H14821@rembrandt.csv.ica.uni-stuttgart.de><wvnbsm9qcim.fsf@talisman.cambridge.redhat.com><996507067.1417.5.camel@ghostwheel.cygnus.com><wvnelqxe0v5.fsf@talisman.cambridge.redhat.com><996583321.24309.169.camel@ghostwheel.cygnus.com><wvn8zh5dzf1.fsf@talisman.cambridge.redhat.com><mailpost.996584774.27152@postal.sibyte.com><yov5u1zo7lzp.fsf_-_@highland.sibyte.com>
cgd@broadcom.com (Chris G. Demetriou) writes:
> First, no good deed goes unpunished. For doing the good deed of
> adding test cases... there are new test failures:
>
> Test: Fails on:
>
> MIPS -mgp32 -mfp32 (a) (b)
> MIPS -mgp32 -mfp64 (a) (b)
> MIPS -mgp64 -mfp32 (a) (b)
> MIPS -mgp64 -mfp64 (a) (b)
> MIPS -mabi=32 (a) (b)
> MIPS -mgp32 -mfp32 (SVR4 PIC) (a)
> MIPS -mgp32 -mfp64 (SVR4 PIC) (a)
> MIPS -mgp64 -mfp32 (SVR4 PIC) (a)
> MIPS -mgp64 -mfp64 (SVR4 PIC) (a)
> MIPS -mabi=32 (SVR4 PIC) (a)
>
> (a): mips-linux, mipsel-linux, mips64-linux, mips64el-linux
> (b): mips-ecoff, mipsel-ecoff
i found a little time to look into these. patches like the ones
below, but applied to all 10 of the tests rather than just 2, should
make the problems go away.
I don't really have time to fix them all, but thought you might want
the info...
(OK, the first hunk of each .d file's diff, and the number of 0's in
the second hunk are my personal style preference... but you get the
idea... 8-)
chris
Index: mips-gp32-fp32-pic.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp32-pic.d,v
retrieving revision 1.1
diff -c -r1.1 mips-gp32-fp32-pic.d
*** mips-gp32-fp32-pic.d 2001/08/02 10:16:49 1.1
--- mips-gp32-fp32-pic.d 2001/08/04 00:54:57
***************
*** 6,12 ****
Disassembly of section .text:
! 0+000 <[^>]*>:
0: 3c1c0000 lui gp,0x0
4: 279c0000 addiu gp,gp,0
8: 0399e021 addu gp,gp,t9
--- 6,12 ----
Disassembly of section .text:
! 0+0000 <[^>]*>:
0: 3c1c0000 lui gp,0x0
4: 279c0000 addiu gp,gp,0
8: 0399e021 addu gp,gp,t9
***************
*** 112,114 ****
--- 112,117 ----
198: 24a40064 addiu a0,a1,100
19c: 0004202b sltu a0,zero,a0
1a0: 00a02025 move a0,a1
+
+ 0+01a4 <[^>]*>:
+ ...
Index: mips-gp32-fp32-pic.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp32-pic.s,v
retrieving revision 1.1
diff -c -r1.1 mips-gp32-fp32-pic.s
*** mips-gp32-fp32-pic.s 2001/08/02 10:16:49 1.1
--- mips-gp32-fp32-pic.s 2001/08/04 00:54:58
***************
*** 137,140 ****
--- 137,145 ----
# Should produce warnings given -mfp32
# add.d $f1, $f2, $f3
+ .end func
+
end:
+
+ # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+ .space 8
Index: mips-gp32-fp32.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp32.d,v
retrieving revision 1.1
diff -c -r1.1 mips-gp32-fp32.d
*** mips-gp32-fp32.d 2001/08/02 10:16:49 1.1
--- mips-gp32-fp32.d 2001/08/04 00:54:58
***************
*** 6,12 ****
Disassembly of section .text:
! 0+000 <[^>]*>:
0: 3c041234 lui a0,0x1234
4: 34845678 ori a0,a0,0x5678
8: 2784c000 addiu a0,gp,-16384
--- 6,12 ----
Disassembly of section .text:
! 0+0000 <[^>]*>:
0: 3c041234 lui a0,0x1234
4: 34845678 ori a0,a0,0x5678
8: 2784c000 addiu a0,gp,-16384
***************
*** 73,75 ****
--- 73,78 ----
fc: 24a40064 addiu a0,a1,100
100: 0004202b sltu a0,zero,a0
104: 00a02025 move a0,a1
+
+ 0+0108 <[^>]*>:
+ ...
Index: mips-gp32-fp32.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp32.s,v
retrieving revision 1.1
diff -c -r1.1 mips-gp32-fp32.s
*** mips-gp32-fp32.s 2001/08/02 10:16:49 1.1
--- mips-gp32-fp32.s 2001/08/04 00:54:58
***************
*** 97,99 ****
--- 97,102 ----
# add.d $f1, $f2, $f3
end:
+
+ # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
+ .space 8