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


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


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