This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MIPS pseudo-insns and Re: Patch to add -mfp32 support toMIPS gas


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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]