Add a testase for PR gas/12589.
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Mar 2011 13:16:44 +0000 (13:16 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 17 Mar 2011 13:16:44 +0000 (13:16 +0000)
2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>

PR gas/12589
* gas/i386/pr12589-1.d: New.
* gas/i386/pr12589-1.s: Likewise.

* gas/i386/i386.exp: Run pr12589-1.

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/pr12589-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/pr12589-1.s [new file with mode: 0644]

index 66347819cccf395fa0abe0281086f66afaae6eb2..155f1a97b5e5a6986abdab182a69d00b46cc33dd 100644 (file)
@@ -1,3 +1,11 @@
+2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gas/12589
+       * gas/i386/pr12589-1.d: New.
+       * gas/i386/pr12589-1.s: Likewise.
+
+       * gas/i386/i386.exp: Run pr12589-1.
+
 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        * gas/i386/bad-size.d: New.
index ea5cdac2ac54d7649bcf53142a4fc2c4da281540..0eb151fca0445eb35bb530f953c8b552516b3f73 100644 (file)
@@ -239,6 +239,9 @@ if [expr ([istarget "i*86-*-*"] ||  [istarget "x86_64-*-*"]) && [gas_32_check]]
        run_dump_test "secrel"
     }
 
+    # Miscellaneous tests.
+    run_dump_test "pr12589-1"
+
     set ASFLAGS "$old_ASFLAGS"
 }
 
diff --git a/gas/testsuite/gas/i386/pr12589-1.d b/gas/testsuite/gas/i386/pr12589-1.d
new file mode 100644 (file)
index 0000000..a89f225
--- /dev/null
@@ -0,0 +1,16 @@
+#name: i386 jump
+#objdump: -drw
+
+.*: +file format .*i386.*
+
+Disassembly of section .text:
+
+0+ <_start>:
+[      ]*[a-f0-9]+:    eb 02                   jmp    4 <scn_pnp>
+
+0+2 <zerob>:
+       ...
+
+0+4 <scn_pnp>:
+[      ]*[a-f0-9]+:    89 c0                   mov    %eax,%eax
+#pass
diff --git a/gas/testsuite/gas/i386/pr12589-1.s b/gas/testsuite/gas/i386/pr12589-1.s
new file mode 100644 (file)
index 0000000..19a37cc
--- /dev/null
@@ -0,0 +1,9 @@
+        .text
+        .globl _start
+_start:
+       jmp scn_pnp
+zerob:
+       zeroln = zerob - _start
+       .=.+zeroln
+scn_pnp:
+       mov %eax,%eax
This page took 0.041692 seconds and 4 git commands to generate.