MIPS/GAS/testsuite: Reenable disabled external BEQ tests
authorMaciej W. Rozycki <macro@imgtec.com>
Sat, 2 Jul 2016 21:19:15 +0000 (22:19 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Sat, 2 Jul 2016 21:38:06 +0000 (22:38 +0100)
Complement:

commit bad36eacdad37042c4efb1c5fbf48476b47de82b
Author: Daniel Jacobowitz <drow@false.org>
Date:   Wed Nov 23 14:04:18 2005 +0000

<https://sourceware.org/ml/binutils/2005-11/msg00324.html>,
("R_MIPS_PC16, again"), and reenable external BEQ tests, the remaining
subset missed from the set of branch tests previously disabled with:

commit 6f171daac941741e5fa904f6e462adb75a595495
Author: Alexandre Oliva <aoliva@redhat.com>
Date:   Thu Dec 12 04:40:22 2002 +0000

<https://sourceware.org/ml/binutils/2002-11/msg00631.html>, ("mips:
branches to external labels are broken").

gas/
* testsuite/gas/mips/beq.s: Uncomment branches to undefined
symbols.
* testsuite/gas/mips/beq.d: Update accordingly.
* testsuite/gas/mips/mipsr6@beq.d: Likewise.
* testsuite/gas/mips/micromips@beq.d: Likewise.

gas/ChangeLog
gas/testsuite/gas/mips/beq.d
gas/testsuite/gas/mips/beq.s
gas/testsuite/gas/mips/micromips@beq.d
gas/testsuite/gas/mips/mipsr6@beq.d

index 8acbbea8acecdcdf4ed32e15e1701d80f54ba45a..7ab0b28555f899d25fda2f7537f13a095779eda0 100644 (file)
@@ -1,3 +1,11 @@
+2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
+
+       * testsuite/gas/mips/beq.s: Uncomment branches to undefined
+       symbols.
+       * testsuite/gas/mips/beq.d: Update accordingly.
+       * testsuite/gas/mips/mipsr6@beq.d: Likewise.
+       * testsuite/gas/mips/micromips@beq.d: Likewise.
+
 2016-07-02  Maciej W. Rozycki  <macro@imgtec.com>
 
        * testsuite/gas/mips/mips.exp: Restrict 64-bit `branch-mips'
index 4da3d126d7af01d72b55336afcfd885274a2e47f..17c1ab14a6983e7a883ff5f056054fbe0980aa18 100644 (file)
@@ -36,10 +36,10 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> jal  0+0000 <.*>
 [      ]*20060: (MIPS_JMP|JMPADDR|R_MIPS_26)   \.text
 [0-9a-f]+ <[^>]*> nop
-#[0-9a-f]+ <[^>]*> b   0+20068 <.*\+0x20068>
-#[     ]*20068: .*16   external_label
-#[0-9a-f]+ <[^>]*> nop
-#[0-9a-f]+ <[^>]*> bal 0+20070 <.*\+0x20070>
-#[     ]*20070: .*16   external_label
-#[0-9a-f]+ <[^>]*> nop
+[0-9a-f]+ <[^>]*> b    0+20068 <.*\+0x20068>
+     ]*20068: .*16   external_label
+[0-9a-f]+ <[^>]*> nop
+[0-9a-f]+ <[^>]*> bal  0+20070 <.*\+0x20070>
+     ]*20070: .*16   external_label
+[0-9a-f]+ <[^>]*> nop
        \.\.\.
index bed691654747cdb82ba8dd1bc675f46539cb3c3e..c37106acda9574c54ffd209f0288e7d42a8030ae 100644 (file)
@@ -20,8 +20,8 @@ text_label:
        .endif
 
 # Branch to an external label.
-#      b       external_label
-#      bal     external_label
+       b       external_label
+       bal     external_label
 
 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
        .align  2
index 9f099e515ef7b47c9dde470bc274fd028f9a6465..29dcbc3aafd215007cf7a69416f0280bc4cbc1c6 100644 (file)
@@ -45,5 +45,10 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> 4060 fffe    bal     0002004e <text_label\+0x2004e>
                        2004e: R_MICROMIPS_PC16_S1      text_label
 [0-9a-f]+ <[^>]*> 0000 0000    nop
+[0-9a-f]+ <[^>]*> 9400 fffe    b       00020056 <text_label\+0x20056>
+                       20056: R_MICROMIPS_PC16_S1      external_label
 [0-9a-f]+ <[^>]*> 0c00         nop
+[0-9a-f]+ <[^>]*> 4060 fffe    bal     0002005c <text_label\+0x2005c>
+                       2005c: R_MICROMIPS_PC16_S1      external_label
+[0-9a-f]+ <[^>]*> 0000 0000    nop
        \.\.\.
index b5fec4c0c9d11ae695b1ae23f3cae9ddf1f56bf1..c334c578e362d3ea822b6f8112e8915f4ec02640 100644 (file)
@@ -37,5 +37,11 @@ Disassembly of section \.text:
 [0-9a-f]+ <[^>]*> nop
 [0-9a-f]+ <[^>]*> bnez a0,0+0050 <.*>
 [      ]*50: .*R_MIPS_PC16     text_label
+[0-9a-f]+ <[^>]*> nop
+[0-9a-f]+ <[^>]*> b    0+0058 <.*>
+[      ]*58: .*R_MIPS_PC16     external_label
+[0-9a-f]+ <[^>]*> nop
+[0-9a-f]+ <[^>]*> bal  0+0060 <.*>
+[      ]*60: .*R_MIPS_PC16     external_label
 [0-9a-f]+ <[^>]*> nop
        \.\.\.