[committed] More MIPS JALR->BAL testsuite fixes
Richard Sandiford
rdsandiford@googlemail.com
Sun Sep 20 11:17:00 GMT 2009
This patch fixes a couple of lingering cases where JALRs have been
legitimately converted to BALs. The tests failed before and after
the JALR patch because of an unrelated problem described in my
previous message.
Tested on mips64-linux-gnu and applied to mainline. I applied it
to the branch too, since it is really a completion of the patch
that Tristan already approved.
Richard
ld/testsuite/
* ld-mips-elf/elf-rel-got-n64-linux.d: Expect BALs.
* ld-mips-elf/elf-rel-xgot-n64-linux.d: Likewise.
Index: ld/testsuite/ld-mips-elf/elf-rel-got-n64-linux.d
===================================================================
--- ld/testsuite/ld-mips-elf/elf-rel-got-n64-linux.d 2009-09-20 11:57:26.000000000 +0100
+++ ld/testsuite/ld-mips-elf/elf-rel-got-n64-linux.d 2009-09-20 11:57:46.000000000 +0100
@@ -129,10 +129,10 @@ Disassembly of section \.text:
120000290: df9980a8 ld t9,-32600\(gp\)
120000294: df998050 ld t9,-32688\(gp\)
120000298: df9980a8 ld t9,-32600\(gp\)
- 12000029c: 0320f809 jalr t9
+ 12000029c: 0411ff90 bal 1200000e0 <fn>
1200002a0: 00000000 nop
1200002a4: df998050 ld t9,-32688\(gp\)
- 1200002a8: 0320f809 jalr t9
+ 1200002a8: 0411ff8d bal 1200000e0 <fn>
1200002ac: 00000000 nop
1200002b0: df8580c0 ld a1,-32576\(gp\)
1200002b4: df8580c0 ld a1,-32576\(gp\)
@@ -245,10 +245,10 @@ Disassembly of section \.text:
120000460: df9980b0 ld t9,-32592\(gp\)
120000464: df998080 ld t9,-32640\(gp\)
120000468: df9980b0 ld t9,-32592\(gp\)
- 12000046c: 0320f809 jalr t9
+ 12000046c: 0411001d bal 1200004e4 <fn2>
120000470: 00000000 nop
120000474: df998080 ld t9,-32640\(gp\)
- 120000478: 0320f809 jalr t9
+ 120000478: 0411001a bal 1200004e4 <fn2>
12000047c: 00000000 nop
120000480: 1000ff17 b 1200000e0 <fn>
120000484: df8580b8 ld a1,-32584\(gp\)
Index: ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d
===================================================================
--- ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d 2009-09-20 11:57:26.000000000 +0100
+++ ld/testsuite/ld-mips-elf/elf-rel-xgot-n64-linux.d 2009-09-20 11:57:46.000000000 +0100
@@ -185,11 +185,11 @@ Disassembly of section \.text:
120000370: 3c190000 lui t9,0x0
120000374: 033cc82d daddu t9,t9,gp
120000378: df398048 ld t9,-32696\(t9\)
- 12000037c: 0320f809 jalr t9
+ 12000037c: 0411ff58 bal 1200000e0 <fn>
120000380: 00000000 nop
120000384: df998030 ld t9,-32720\(gp\)
120000388: 673900e0 daddiu t9,t9,224
- 12000038c: 0320f809 jalr t9
+ 12000038c: 0411ff54 bal 1200000e0 <fn>
120000390: 00000000 nop
120000394: 3c050000 lui a1,0x0
120000398: 00bc282d daddu a1,a1,gp
@@ -358,11 +358,11 @@ Disassembly of section \.text:
120000624: 3c190000 lui t9,0x0
120000628: 033cc82d daddu t9,t9,gp
12000062c: df398050 ld t9,-32688\(t9\)
- 120000630: 0320f809 jalr t9
+ 120000630: 0411002b bal 1200006e0 <fn2>
120000634: 00000000 nop
120000638: df998030 ld t9,-32720\(gp\)
12000063c: 673906e0 daddiu t9,t9,1760
- 120000640: 0320f809 jalr t9
+ 120000640: 04110027 bal 1200006e0 <fn2>
120000644: 00000000 nop
120000648: 3c050000 lui a1,0x0
12000064c: 00bc282d daddu a1,a1,gp
More information about the Binutils
mailing list