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]
Other format: [Raw text]

more gas testsuite fixes


More gas testsuite tweaks.  The sparc change is probably what the
original author intended.  ;)

gas/testsuite/ChangeLog
	* gas/mcore/allinsn.d: Escape dots.  Pass -z to objdump and adjust
	to suit.  Match coff relocs.  Match "from address pool" comments.
	* gas/sparc/pcrel.s: Use 2b label in expressions.
	* gas/sparc/pcrel64.s: Likewise.
	* gas/sparc/pcrel.d: Adjust to suit.
	* gas/sparc/pcrel64.d: Likewise.
	* gas/vtable/vtable.exp: Move xfails to ..
	(proc vtable_setup_xfails): .. here. Add i866.

Index: gas/testsuite/gas/mcore/allinsn.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mcore/allinsn.d,v
retrieving revision 1.2
diff -u -p -r1.2 allinsn.d
--- gas/testsuite/gas/mcore/allinsn.d	17 May 1999 09:26:37 -0000	1.2
+++ gas/testsuite/gas/mcore/allinsn.d	27 Aug 2002 22:24:35 -0000
@@ -1,10 +1,10 @@
 #as:
-#objdump: -dr
+#objdump: -drz
 #name: allinsn
 
 .*: +file format .*
 
-Disassembly of section .text:
+Disassembly of section \.text:
 
 0+000 <abs>:
    0:	01e0      	abs	r0
@@ -55,7 +55,7 @@ Disassembly of section .text:
   1e:	1321      	bgenr	r1, r2
 
 0+020 <bkpt>:
-	...
+  20:	0000      	bkpt
 
 0+022 <bmaski>:
   22:	2c83      	bmaski	r3, 8
@@ -154,7 +154,7 @@ Disassembly of section .text:
   60:	f00e      	br	0x7e
 
 0+062 <jbsr>:
-  62:	7f0a      	jsri	0x.*
+  62:	7f0a      	jsri	0x0	// from address pool at 0x8c
 
 0+064 <jbt>:
   64:	e00c      	bt	0x7e
@@ -163,21 +163,21 @@ Disassembly of section .text:
   66:	00c1      	jmp	r1
 
 0+068 <jmpi>:
-  68:	7009      	jmpi	0x.*
+  68:	7009      	jmpi	0x0	// from address pool at 0x8c
 
 0+06a <jsr>:
   6a:	00d2      	jsr	r2
 
 0+06c <jsri>:
-  6c:	7f08      	jsri	0x.*
+  6c:	7f08      	jsri	0x0	// from address pool at 0x8c
 
-0+06e <ld.b>:
+0+06e <ld\.b>:
   6e:	a304      	ldb	r3, \(r4, 0\)
 
-0+070 <ld.h>:
+0+070 <ld\.h>:
   70:	c516      	ldh	r5, \(r6, 2\)
 
-0+072 <ld.w>:
+0+072 <ld\.w>:
   72:	8718      	ld	r7, \(r8, 4\)
 
 0+074 <ldb>:
@@ -202,7 +202,7 @@ Disassembly of section .text:
   80:	048e      	loopt	r8, 0x64
 
 0+082 <LRW>:
-  82:	7903      	lrw	r9, 0x.*
+  82:	7903      	lrw	r9, (0x86|0x0	// from address pool at 0x90)
 
 0+084 <lrw>:
   84:	7904      	lrw	r9, 0x4321
@@ -215,12 +215,14 @@ Disassembly of section .text:
 
 0+08a <lslc>:
   8a:	3c0c      	lslc	r12
-
-	...
-			8c: ADDR32	.text
-			90: ADDR32	.text.*
-  94:	0000      	bkpt
-  96:	4321      	.short 0x4321
+  8c:	0000      	bkpt
+			8c: ADDR32	\.text
+  8e:	0000      	bkpt
+  90:	(0000      	bkpt|0086      	dect	r6)
+			90: ADDR32	\.text(\+0x86)?
+  92:	0000      	bkpt
+  94:	4321      	\.short 0x4321
+  96:	0000      	bkpt
 
 0+098 <lsli>:
   98:	3dfd      	lsli	r13, 31
@@ -312,13 +314,13 @@ Disassembly of section .text:
 0+0d2 <sexth>:
   d2:	0177      	sexth	r7
 
-0+0d4 <st.b>:
+0+0d4 <st\.b>:
   d4:	b809      	stb	r8, \(r9, 0\)
 
-0+0d6 <st.h>:
+0+0d6 <st\.h>:
   d6:	da1b      	sth	r10, \(r11, 2\)
 
-0+0d8 <st.w>:
+0+0d8 <st\.w>:
   d8:	9c1d      	st	r12, \(r13, 4\)
 
 0+0da <stb>:
Index: gas/testsuite/gas/sparc/pcrel.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sparc/pcrel.d,v
retrieving revision 1.1
diff -u -p -r1.1 pcrel.d
--- gas/testsuite/gas/sparc/pcrel.d	21 Dec 2001 22:35:24 -0000	1.1
+++ gas/testsuite/gas/sparc/pcrel.d	27 Aug 2002 22:24:36 -0000
@@ -20,8 +20,8 @@ Disassembly of section .data:
 	...
 			8: R_SPARC_32	.text\+0x10
 			c: R_SPARC_DISP32	.text\+0x10
-			10: R_SPARC_32	.text\+0x10
-			14: R_SPARC_DISP32	.text\+0x10
+			10: R_SPARC_32	.text\+0x14
+			14: R_SPARC_DISP32	.text\+0x14
 			18: R_SPARC_32	foo
 			1c: R_SPARC_DISP32	foo
 			20: R_SPARC_32	foo\+0x10
Index: gas/testsuite/gas/sparc/pcrel.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sparc/pcrel.s,v
retrieving revision 1.1
diff -u -p -r1.1 pcrel.s
--- gas/testsuite/gas/sparc/pcrel.s	21 Dec 2001 22:35:24 -0000	1.1
+++ gas/testsuite/gas/sparc/pcrel.s	27 Aug 2002 22:24:36 -0000
@@ -11,8 +11,8 @@ foo:	nop
 	.word 1
 	.word 1b + 16
 	.word %r_disp32(1b + 16)
-	.word 1b + 16
-	.word %r_disp32(1b + 16)
+	.word 2b + 16
+	.word %r_disp32(2b + 16)
 3:	.word foo
 	.word %r_disp32(foo)
 	.word foo + 16
Index: gas/testsuite/gas/sparc/pcrel64.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sparc/pcrel64.d,v
retrieving revision 1.1
diff -u -p -r1.1 pcrel64.d
--- gas/testsuite/gas/sparc/pcrel64.d	21 Dec 2001 22:35:24 -0000	1.1
+++ gas/testsuite/gas/sparc/pcrel64.d	27 Aug 2002 22:24:36 -0000
@@ -20,8 +20,8 @@ Disassembly of section .data:
 	...
 			8: R_SPARC_32	.text\+0x10
 			c: R_SPARC_DISP32	.text\+0x10
-			10: R_SPARC_32	.text\+0x10
-			14: R_SPARC_DISP32	.text\+0x10
+			10: R_SPARC_32	.text\+0x14
+			14: R_SPARC_DISP32	.text\+0x14
 			18: R_SPARC_32	foo
 			1c: R_SPARC_DISP32	foo
 			20: R_SPARC_32	foo\+0x10
Index: gas/testsuite/gas/sparc/pcrel64.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/sparc/pcrel64.s,v
retrieving revision 1.1
diff -u -p -r1.1 pcrel64.s
--- gas/testsuite/gas/sparc/pcrel64.s	21 Dec 2001 22:35:24 -0000	1.1
+++ gas/testsuite/gas/sparc/pcrel64.s	27 Aug 2002 22:24:36 -0000
@@ -11,8 +11,8 @@ foo:	nop
 	.word 1
 	.word 1b + 16
 	.word %r_disp32(1b + 16)
-	.word 1b + 16
-	.word %r_disp32(1b + 16)
+	.word 2b + 16
+	.word %r_disp32(2b + 16)
 3:	.word foo
 	.word %r_disp32(foo)
 	.word foo + 16
Index: gas/testsuite/gas/vtable/vtable.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/vtable/vtable.exp,v
retrieving revision 1.15
diff -u -p -r1.15 vtable.exp
--- gas/testsuite/gas/vtable/vtable.exp	16 Aug 2002 00:06:06 -0000	1.15
+++ gas/testsuite/gas/vtable/vtable.exp	27 Aug 2002 22:24:36 -0000
@@ -14,28 +14,28 @@ proc run_list_test { name opts } {
     pass $testname
 }
 
+# These tests are not (yet) supported on some targets.
+proc vtable_setup_xfails { } {
+    setup_xfail "alpha*-*" "arc-*" "avr-*" "d30v-*"
+    setup_xfail "h8300*-*" "hppa*64*-*-*hpux*"
+    setup_xfail "i370-*" "i860-*" "i960-*" "ia64-*" "ip2k-*"
+    setup_xfail "mn10200-*" "or32-*" "sparc64*-*"
+}
+
 # Vtable bits are only supported by ELF targets.
 if { (   [istarget "*-*-elf*"] || [istarget "*-*-linux*"])
      && ![istarget *-*-linux*aout*]
      && ![istarget *-*-linux*ecoff*]
      && ![istarget *-*-linux*oldld*] } then {
-	 
-    # These tests are not (yet) supported on some targets.
-    setup_xfail "alpha*-*" "arc-*" "avr-*" "d30v-*"
-    setup_xfail "h8300*-*" "hppa*64*-*-*hpux*"
-    setup_xfail "i370-*" "i960-*" "ia64-*" "ip2k-*"
-    setup_xfail "mn10200-*" "or32-*" "sparc64*-*"
+
+    vtable_setup_xfails
     run_dump_test "inherit0"
 
     # This particular test is supposed to fail..
     run_list_test "inherit1" "-al"
 
-    setup_xfail "alpha*-*" "arc-*" "avr-*" "d30v-*"
-    setup_xfail "h8300*-*" "hppa*64*-*-*hpux*"
-    setup_xfail "i370-*" "i960-*" "ia64-*" "ip2k-*"
-    setup_xfail "mn10200-*" "or32-*" "sparc64*-*"
-
     # The vtable entry results are different on Rel and Rela targets.
+    vtable_setup_xfails
     if {[istarget "arm*-*"]
 	|| [istarget "arc-*"]
 	|| [istarget "d10v-*"]

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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