This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Patch: Updates on mips testcases
- To: binutils at sourceware dot cygnus dot com
- Subject: Patch: Updates on mips testcases
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Fri, 8 Jun 2001 23:29:46 -0700
Alan's patch on mips gas cleans up the new testcase I added. I checked
in this update. I also added a new testcase for relaxtion and marked
it expected to fail. I hope we can fix it someday.
Thanks.
H.J.
----
2001-06-08 H.J. Lu <hjl@gnu.org>
* gas/mips/elfel-rel3.s: Moved to ...
* gas/mips/elf-rel3.s: Here.
* gas/mips/elf-rel3.d: Updated.
* gas/mips/elfel-rel3.d: Updated.
* gas/mips/relax.d: New file.
* gas/mips/relax.s: Likewise.
* gas/mips/mips.exp: Run relax and set xfail.
Index: gas/mips/elf-rel3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/elf-rel3.d,v
retrieving revision 1.1
diff -u -p -r1.1 elf-rel3.d
--- elf-rel3.d 2001/06/07 00:57:40 1.1
+++ elf-rel3.d 2001/06/09 06:24:17
@@ -10,4 +10,4 @@ OFFSET TYPE VALUE
Contents of section .data:
- 0000 12121212 fffffffc 00000000 00000000 ................
+ 0000 12121212 00000004 00000000 00000000 ................
Index: gas/mips/elf-rel3.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/elf-rel3.s,v
retrieving revision 1.1
diff -u -p -r1.1 elf-rel3.s
--- elf-rel3.s 2001/06/07 00:57:40 1.1
+++ elf-rel3.s 2001/06/09 06:24:17
@@ -7,5 +7,5 @@ x:
.type b,@object
.size b,8
b:
- .word b-4
+ .word b+4
.word x
Index: gas/mips/elfel-rel3.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/elfel-rel3.d,v
retrieving revision 1.1
diff -u -p -r1.1 elfel-rel3.d
--- elfel-rel3.d 2001/06/07 00:57:40 1.1
+++ elfel-rel3.d 2001/06/09 06:24:17
@@ -1,5 +1,6 @@
#objdump: -sr -j .data
#name: MIPS ELF reloc 3
+#source: elf-rel3.s
.*: file format elf.*mips
Index: gas/mips/mips.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips.exp,v
retrieving revision 1.13
diff -u -p -r1.13 mips.exp
--- mips.exp 2001/06/09 04:54:16 1.13
+++ mips.exp 2001/06/09 06:24:17
@@ -113,6 +113,10 @@ if { [istarget mips*-*-*] } then {
run_dump_test "mips32"
run_dump_test "mips64"
+ # It will always fail until someone fixes it.
+ setup_xfail "mips*-*-*"
+ run_dump_test "relax"
+
run_list_test "illegal" ""
if $svr4pic {
--- /dev/null Fri Mar 23 20:37:44 2001
+++ gas/mips/relax.d Fri Jun 8 23:12:32 2001
@@ -0,0 +1,8 @@
+#objdump: -dr --prefix-addresses -mmips:4000
+#name: MIPS relax
+
+# Test relaxation.
+
+.*: +file format .*mips.*
+
+Disassembly of section .text:
--- /dev/null Fri Mar 23 20:37:44 2001
+++ gas/mips/relax.s Fri Jun 8 23:12:46 2001
@@ -0,0 +1,7 @@
+# Source file used to test relaxation.
+
+ .text
+foo:
+ move $2, $3 # just something
+ .space 0x20000 # to make a 128kb loop body
+ beq $2, $3, foo