diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-06-02 23:46:51 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-06-02 23:46:51 +0000 |
commit | 121d5e17cd409929c36b3c9a37eb12ce0f4c654f (patch) | |
tree | 31dd8f0384e9148c16a51a2d0c325844c47e6c50 /gas | |
parent | d9ac025813babca71b94bb29cbc862de1040dbd9 (diff) | |
download | gdb-121d5e17cd409929c36b3c9a37eb12ce0f4c654f.zip gdb-121d5e17cd409929c36b3c9a37eb12ce0f4c654f.tar.gz gdb-121d5e17cd409929c36b3c9a37eb12ce0f4c654f.tar.bz2 |
new test for "pushw"
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/gas/i386/all.exp | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/pushw.l | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/pushw.s | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/all.exp b/gas/testsuite/gas/i386/all.exp index 752567a..a6b898d 100644 --- a/gas/testsuite/gas/i386/all.exp +++ b/gas/testsuite/gas/i386/all.exp @@ -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 index 0000000..e25aa74 --- /dev/null +++ b/gas/testsuite/gas/i386/pushw.l @@ -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 index 0000000..b7fdecd --- /dev/null +++ b/gas/testsuite/gas/i386/pushw.s @@ -0,0 +1,2 @@ +2: pushw $200 +1: .long 1b-2b |