* gas/mips/eret-1.d: Adjust regexps for robustness.
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 21 Sep 2009 13:13:04 +0000 (13:13 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Mon, 21 Sep 2009 13:13:04 +0000 (13:13 +0000)
* gas/mips/eret-2.d: Likewise.
* gas/mips/eret-3.d: Likewise.
* gas/mips/eret-1.s: Reformat for readability.  Add a label
at the beginning.
* gas/mips/eret-2.s: Add a label at the beginning.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/eret-1.d
gas/testsuite/gas/mips/eret-1.s
gas/testsuite/gas/mips/eret-2.d
gas/testsuite/gas/mips/eret-2.s
gas/testsuite/gas/mips/eret-3.d

index 0b68cb62b5ea03bc6a0400629d3ec15ea1fb2d61..bc4eb13349ceb996aca43b1bc325fe50d0a4d622 100644 (file)
@@ -1,3 +1,12 @@
+2009-09-21  Maciej W. Rozycki  <macro@linux-mips.org>
+
+       * gas/mips/eret-1.d: Adjust regexps for robustness.
+       * gas/mips/eret-2.d: Likewise.
+       * gas/mips/eret-3.d: Likewise.
+       * gas/mips/eret-1.s: Reformat for readability.  Add a label
+       at the beginning.
+       * gas/mips/eret-2.s: Add a label at the beginning.
+
 2009-09-21  Maciej W. Rozycki  <macro@linux-mips.org>
 
        * gas/mips/eret-1.s: Add trailing padding.
index 4c4e6d3e9b6dfef72ba1291aed4dd1c0d53f2de1..fb697e03bd9ef8f0be5b69a0ce485a82fc6de597 100644 (file)
@@ -6,37 +6,37 @@
 
 Disassembly of section \.text:
 
-00000000 <\.text>:
-   0:  240c0000        li      t4,0
-   4:  42000018        eret
-   8:  00000000        nop
-   c:  10000003        b       0x1c
-  10:  00000000        nop
-  14:  240a0003        li      t2,3
-  18:  42000018        eret
-  1c:  24040000        li      a0,0
-  20:  4200001f        deret
-  24:  00000000        nop
-  28:  116afffa        beq     t3,t2,0x14
-  2c:  00000000        nop
-  30:  4200001f        deret
-  34:  00000000        nop
-  38:  42000018        eret
-  3c:  00000000        nop
-  40:  42000018        eret
-  44:  00000000        nop
-  48:  1000fff4        b       0x1c
-  4c:  00000000        nop
-  50:  240c0004        li      t4,4
-  54:  4200001f        deret
-  58:  240c0003        li      t4,3
-  5c:  42000018        eret
-  60:  10000005        b       0x78
-  64:  240c0003        li      t4,3
-  68:  42000018        eret
-  6c:  00000000        nop
-  70:  10000001        b       0x78
-  74:  240c0003        li      t4,3
-  78:  240c0003        li      t4,3
-  7c:  42000018        eret
+[0-9a-f]+ <foo>:
+[ 0-9a-f]+:    240c0000        li      t4,0
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    10000003        b       [0-9a-f]+ <foo\+0x1c>
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    240a0003        li      t2,3
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    24040000        li      a0,0
+[ 0-9a-f]+:    4200001f        deret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    116afffa        beq     t3,t2,[0-9a-f]+ <foo\+0x14>
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    4200001f        deret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    1000fff4        b       [0-9a-f]+ <foo\+0x1c>
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    240c0004        li      t4,4
+[ 0-9a-f]+:    4200001f        deret
+[ 0-9a-f]+:    240c0003        li      t4,3
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    10000005        b       [0-9a-f]+ <foo\+0x78>
+[ 0-9a-f]+:    240c0003        li      t4,3
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    10000001        b       [0-9a-f]+ <foo\+0x78>
+[ 0-9a-f]+:    240c0003        li      t4,3
+[ 0-9a-f]+:    240c0003        li      t4,3
+[ 0-9a-f]+:    42000018        eret
        \.\.\.
index 088acba13609bdf1ff29c7d327d9baebe4015d60..a33124f021b76d708f6c10d5cd9a28ce00ddcef5 100644 (file)
@@ -1,29 +1,29 @@
-       .text
-       li $t4, 0
+foo:
+       li      $t4, 0
        eret
-       b 2f
-1:     li $t2, 3
+       b       2f
+1:     li      $t2, 3
        eret
-2:     li $a0, 0
+2:     li      $a0, 0
        deret
-       beq $t3,$t2,1b
+       beq     $t3, $t2, 1b
        deret
        eret
        eret
-       b 2b
+       b       2b
 
        .set noreorder
-       li $t4, 4
+       li      $t4, 4
        deret
-       li $t4, 3
+       li      $t4, 3
        eret
-       b 1f
-       li $t4, 3
+       b       1f
+        li     $t4, 3
        eret
        nop
-       b 1f
-       li $t4, 3
-1:     li $t4, 3
+       b       1f
+        li     $t4, 3
+1:     li      $t4, 3
        eret
 
 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
index a78940f245aaee52031166cd18e5e29225a53e7e..d73dcffc0619a6bf2891ba23b63c1742b3cfb0a1 100644 (file)
@@ -6,13 +6,13 @@
 
 Disassembly of section \.text:
 
-00000000 <\.text>:
-   0:  42000018        eret
-   4:  00000000        nop
-   8:  1000fffd        b       0x0
-   c:  00000000        nop
-  10:  42000018        eret
-  14:  00000000        nop
-  18:  1000fffd        b       0x10
-  1c:  00000000        nop
+[0-9a-f]+ <foo>:
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    1000fffd        b       [0-9a-f]+ <foo>
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    1000fffd        b       [0-9a-f]+ <foo\+0x10>
+[ 0-9a-f]+:    00000000        nop
        \.\.\.
index dfe1e605faf7fb9dee78ce5ceadd8212e6c092fe..0654ad1ac5427b9ba8a6a0a43f225ea2ee33185a 100644 (file)
@@ -1,3 +1,4 @@
+foo:
        .set    noreorder
 1:     eret
        .set    reorder
index f31afa6010f16a834d530c803a1122e89d726dd3..2a67bb1106a666a0783d2fe39a661d73822c8ad5 100644 (file)
@@ -6,14 +6,14 @@
 
 Disassembly of section \.text:
 
-00000000 <foo>:
-   0:  42000018        eret
-   4:  00000000        nop
+[0-9a-f]+ <foo>:
+[ 0-9a-f]+:    42000018        eret
+[ 0-9a-f]+:    00000000        nop
 
-00000008 <bar>:
-   8:  10800002        beqz    a0,14 <bar\+0xc>
-   c:  00000000        nop
-  10:  aca40000        sw      a0,0\(a1\)
-  14:  03e00008        jr      ra
-  18:  00000000        nop
+[0-9a-f]+ <bar>:
+[ 0-9a-f]+:    10800002        beqz    a0,[0-9a-f]+ <bar\+0xc>
+[ 0-9a-f]+:    00000000        nop
+[ 0-9a-f]+:    aca40000        sw      a0,0\(a1\)
+[ 0-9a-f]+:    03e00008        jr      ra
+[ 0-9a-f]+:    00000000        nop
        \.\.\.