new test for "pushw"
authorKen Raeburn <raeburn@cygnus>
Thu, 2 Jun 1994 23:46:51 +0000 (23:46 +0000)
committerKen Raeburn <raeburn@cygnus>
Thu, 2 Jun 1994 23:46:51 +0000 (23:46 +0000)
gas/testsuite/gas/i386/all.exp
gas/testsuite/gas/i386/pushw.l [new file with mode: 0644]
gas/testsuite/gas/i386/pushw.s [new file with mode: 0644]

index 752567a..a6b898d 100644 (file)
@@ -1,3 +1,12 @@
 if [istarget i386-*] then {
     gas_test "inout.s" "" $stdoptlist "various in/out syntaxes"
+
+    if [gas_test_old "pushw.s" "-al > pushw.list" "pushw (assembly)"] then {
+       set testname "pushw (correctness)"
+       if { [regexp_diff "pushw.list" "$srcdir/$subdir/pushw.l"] == 0 } {
+           pass $testname
+       } else {
+           fail $testname
+       }
+    }
 }
diff --git a/gas/testsuite/gas/i386/pushw.l b/gas/testsuite/gas/i386/pushw.l
new file mode 100644 (file)
index 0000000..e25aa74
--- /dev/null
@@ -0,0 +1,5 @@
+GAS LISTING .*/pushw\.s *page 1
+
+
+   1 0000 6668C800      2:      pushw \$200
+   2 0004 04000000      1:      \.long 1b-2b
diff --git a/gas/testsuite/gas/i386/pushw.s b/gas/testsuite/gas/i386/pushw.s
new file mode 100644 (file)
index 0000000..b7fdecd
--- /dev/null
@@ -0,0 +1,2 @@
+2:     pushw $200
+1:     .long 1b-2b