aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2007-03-21 19:33:06 +0000
committerH.J. Lu <hjl.tools@gmail.com>2007-03-21 19:33:06 +0000
commitc0f91ba6d9e8b655601a43eb83b64e8d503e854e (patch)
treed240746047b75be982a6cc412eaf3f5bb661f5a3 /gas
parentaf1c101013f1e8c3d2bbcd2fb2153110d81e47d1 (diff)
downloadgdb-c0f91ba6d9e8b655601a43eb83b64e8d503e854e.zip
gdb-c0f91ba6d9e8b655601a43eb83b64e8d503e854e.tar.gz
gdb-c0f91ba6d9e8b655601a43eb83b64e8d503e854e.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/i386/i386.exp1
-rw-r--r--gas/testsuite/gas/i386/nops-3.d43
-rw-r--r--gas/testsuite/gas/i386/nops-3.s6
4 files changed, 57 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index d1fd2b9..e7024ee 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -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.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 1f141f2..cfef275 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -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
index 0000000..10cc95c
--- /dev/null
+++ b/gas/testsuite/gas/i386/nops-3.d
@@ -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[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