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: 07 Aug 2001 15:30:39 -0700
- cc: binutils at sources dot 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><yov5zo9god37.fsf@highland.sibyte.com><20010804164538.A10516@lucon.org>
As things stand, i've got one more issue with these patches:
They fail because assembler errors on mips-ecoff. (Once these errors
are fixed, the tests still fail, of course. 8-)
I don't know whether they are expected to produce the same output on
ECOFF as on ELF, but i figure they should at least assemble with ECOFF
so that at some point in the future somebody can figure out what's
correct (and fix bugs or add different .d files if appropriate).
To this end, I've come up with the following patch.
It changes uses of .4byte to .word (the former seems to be supported
in ELF only?). I don't believe there could be negative consequences
from this part; .word generates 4-byte values on MIPS.
It also removes the .size directives which differ in usage from ELF to
ECOFF. This caused me some concern, but causes no failures with the
existing tests.
Comments?
chris
=====
for gas/testsuite/ChangeLog:
2001-08-07 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips-abi32-pic.s: Use ".word" rather than ".4byte".
Delete use of ".size".
* gas/mips/mips-abi32.s: Likewise.
* gas/mips/mips-gp32-fp32-pic.s: Likewise.
* gas/mips/mips-gp32-fp32.s: Likewise.
* gas/mips/mips-gp32-fp64-pic.s: Likewise.
* gas/mips/mips-gp32-fp64.s: Likewise.
* gas/mips/mips-gp64-fp32-pic.s: Likewise.
* gas/mips/mips-gp64-fp32.s: Likewise.
* gas/mips/mips-gp64-fp64-pic.s: Likewise.
* gas/mips/mips-gp64-fp64.s: Likewise.
Index: gas/mips/mips-abi32-pic.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-abi32-pic.s,v
retrieving revision 1.2
diff -c -r1.2 mips-abi32-pic.s
*** mips-abi32-pic.s 2001/08/05 00:53:28 1.2
--- mips-abi32-pic.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
.ent func
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
.ent func
Index: gas/mips/mips-abi32.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-abi32.s,v
retrieving revision 1.2
diff -c -r1.2 mips-abi32.s
*** mips-abi32.s 2001/08/05 00:53:28 1.2
--- mips-abi32.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
func:
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
func:
Index: gas/mips/mips-gp32-fp32-pic.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp32-pic.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp32-fp32-pic.s
*** mips-gp32-fp32-pic.s 2001/08/05 00:53:28 1.2
--- mips-gp32-fp32-pic.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
.ent func
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
.ent func
Index: gas/mips/mips-gp32-fp32.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp32.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp32-fp32.s
*** mips-gp32-fp32.s 2001/08/05 00:53:28 1.2
--- mips-gp32-fp32.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
func:
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
func:
Index: gas/mips/mips-gp32-fp64-pic.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp64-pic.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp32-fp64-pic.s
*** mips-gp32-fp64-pic.s 2001/08/05 00:53:28 1.2
--- mips-gp32-fp64-pic.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
.ent func
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
.ent func
Index: gas/mips/mips-gp32-fp64.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp32-fp64.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp32-fp64.s
*** mips-gp32-fp64.s 2001/08/05 00:53:28 1.2
--- mips-gp32-fp64.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
func:
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
func:
Index: gas/mips/mips-gp64-fp32-pic.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp64-fp32-pic.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp64-fp32-pic.s
*** mips-gp64-fp32-pic.s 2001/08/05 00:53:28 1.2
--- mips-gp64-fp32-pic.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
.ent func
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
.ent func
Index: gas/mips/mips-gp64-fp32.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp64-fp32.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp64-fp32.s
*** mips-gp64-fp32.s 2001/08/05 00:53:28 1.2
--- mips-gp64-fp32.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
func:
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
func:
Index: gas/mips/mips-gp64-fp64-pic.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp64-fp64-pic.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp64-fp64-pic.s
*** mips-gp64-fp64-pic.s 2001/08/05 00:53:28 1.2
--- mips-gp64-fp64-pic.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
.ent func
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
.ent func
Index: gas/mips/mips-gp64-fp64.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips-gp64-fp64.s,v
retrieving revision 1.2
diff -c -r1.2 mips-gp64-fp64.s
*** mips-gp64-fp64.s 2001/08/05 00:53:28 1.2
--- mips-gp64-fp64.s 2001/08/07 22:26:33
***************
*** 1,14 ****
.sdata
! shared: .4byte 11
.data
- .size unshared,16
unshared:
! .4byte 1
! .4byte 2
! .4byte 3
! .4byte 4
.text
func:
--- 1,13 ----
.sdata
! shared: .word 11
.data
unshared:
! .word 1
! .word 2
! .word 3
! .word 4
.text
func: