2003-03-21 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 21 Mar 2007 19:33:06 +0000 (19:33 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 21 Mar 2007 19:33:06 +0000 (19:33 +0000)
* gas/i386/i386.exp: Run nops-3.

* gas/i386/nops-3.d: New file.
* gas/i386/nops-3.s: Likewise.

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

index d1fd2b9..e7024ee 100644 (file)
@@ -1,3 +1,10 @@
+2003-03-21  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * gas/i386/i386.exp: Run nops-3.
+
+       * gas/i386/nops-3.d: New file.
+       * gas/i386/nops-3.s: Likewise.
+
 2007-03-20  Mark Shinwell  <shinwell@codesourcery.com>
 
        * gas/arm/mul-overlap.s: Don't use %type.
index 1f141f2..cfef275 100644 (file)
@@ -83,6 +83,7 @@ if [expr ([istarget "i*86-*-*"] ||  [istarget "x86_64-*-*"]) && [gas_32_check]]
     run_dump_test "nops-2"
     run_dump_test "nops-2-i386"
     run_dump_test "nops-2-merom"
+    run_dump_test "nops-3"
     run_dump_test "addr16"
     run_dump_test "addr32"
 
diff --git a/gas/testsuite/gas/i386/nops-3.d b/gas/testsuite/gas/i386/nops-3.d
new file mode 100644 (file)
index 0000000..10cc95c
--- /dev/null
@@ -0,0 +1,43 @@
+#source: nops-3.s
+#objdump: -drw
+#name: i386 nops 3
+
+.*: +file format .*
+
+Disassembly of section .text:
+
+0+ <nop>:
+[       ]*0:[   ]+90[   ]+nop[         ]*
+[       ]*1:[   ]+90[   ]+nop[         ]*
+[       ]*2:[   ]+90[   ]+nop[         ]*
+[       ]*3:[   ]+90[   ]+nop[         ]*
+[       ]*4:[   ]+90[   ]+nop[         ]*
+[       ]*5:[   ]+90[   ]+nop[         ]*
+[       ]*6:[   ]+90[   ]+nop[         ]*
+[       ]*7:[   ]+90[   ]+nop[         ]*
+[       ]*8:[   ]+90[   ]+nop[         ]*
+[       ]*9:[   ]+90[   ]+nop[         ]*
+[       ]*a:[   ]+90[   ]+nop[         ]*
+[       ]*b:[   ]+90[   ]+nop[         ]*
+[       ]*c:[   ]+90[   ]+nop[         ]*
+[       ]*d:[   ]+90[   ]+nop[         ]*
+[       ]*e:[   ]+90[   ]+nop[         ]*
+[       ]*f:[   ]+90[   ]+nop[         ]*
+[       ]*10:[  ]+90[   ]+nop[         ]*
+[       ]*11:[  ]+90[   ]+nop[         ]*
+[       ]*12:[  ]+90[   ]+nop[         ]*
+[       ]*13:[  ]+90[   ]+nop[         ]*
+[       ]*14:[  ]+90[   ]+nop[         ]*
+[       ]*15:[  ]+90[   ]+nop[         ]*
+[       ]*16:[  ]+90[   ]+nop[         ]*
+[       ]*17:[  ]+90[   ]+nop[         ]*
+[       ]*18:[  ]+90[   ]+nop[         ]*
+[       ]*19:[  ]+90[   ]+nop[         ]*
+[       ]*1a:[  ]+90[   ]+nop[         ]*
+[       ]*1b:[  ]+90[   ]+nop[         ]*
+[       ]*1c:[  ]+90[   ]+nop[         ]*
+[       ]*1d:[  ]+90[   ]+nop[         ]*
+[       ]*1e:[  ]+90[   ]+nop[         ]*
+[       ]*1f:[  ]+90[   ]+nop[         ]*
+[       ]*20:[  ]+89 c3[        ]+mov[         ]+%eax,%ebx[    ]*
+#pass
diff --git a/gas/testsuite/gas/i386/nops-3.s b/gas/testsuite/gas/i386/nops-3.s
new file mode 100644 (file)
index 0000000..dedf15b
--- /dev/null
@@ -0,0 +1,6 @@
+       .text
+nop:
+       nop
+       .align 32
+       mov %eax,%ebx
+       .p2align 4