From 121d5e17cd409929c36b3c9a37eb12ce0f4c654f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 2 Jun 1994 23:46:51 +0000 Subject: [PATCH] new test for "pushw" --- gas/testsuite/gas/i386/all.exp | 9 +++++++++ gas/testsuite/gas/i386/pushw.l | 5 +++++ gas/testsuite/gas/i386/pushw.s | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 gas/testsuite/gas/i386/pushw.l create mode 100644 gas/testsuite/gas/i386/pushw.s diff --git a/gas/testsuite/gas/i386/all.exp b/gas/testsuite/gas/i386/all.exp index 752567a377f..a6b898d009d 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 00000000000..e25aa744869 --- /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 00000000000..b7fdecd81f7 --- /dev/null +++ b/gas/testsuite/gas/i386/pushw.s @@ -0,0 +1,2 @@ +2: pushw $200 +1: .long 1b-2b -- 2.30.2