aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2002-11-01 20:41:48 +0000
committerH.J. Lu <hjl.tools@gmail.com>2002-11-01 20:41:48 +0000
commit4dd8d67b6ac95eb975dc3ea2bb30a38d5754a4e7 (patch)
tree08177fff047153a65f0e987ac9f38cd9c56afeca /gas
parent4f3cafa2ebb6640d813cd2c2a0176f984482210d (diff)
downloadfsf-binutils-gdb-4dd8d67b6ac95eb975dc3ea2bb30a38d5754a4e7.zip
fsf-binutils-gdb-4dd8d67b6ac95eb975dc3ea2bb30a38d5754a4e7.tar.gz
fsf-binutils-gdb-4dd8d67b6ac95eb975dc3ea2bb30a38d5754a4e7.tar.bz2
2002-11-01 H.J. Lu <hjl@gnu.org>
* gas/i386/i386.exp: Add "sub". * gas/i386/sub.d: New. * gas/i386/sub.s: New.
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/sub.d10
-rw-r--r--gas/testsuite/gas/i386/sub.s11
4 files changed, 29 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 5a3a44f..9868851 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2002-11-01 H.J. Lu <hjl@gnu.org>
+
+ * gas/i386/i386.exp: Add "sub".
+
+ * gas/i386/sub.d: New.
+ * gas/i386/sub.s: New.
+
2002-10-22 H.J. Lu <hjl@gnu.org>
* gas/mips/branch-misc-2.d: Updated.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 5542c0d..cf87c5e 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -55,6 +55,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "sse2"
run_dump_test "absrel"
run_dump_test "pcrel"
+ run_dump_test "sub"
# PIC is only supported on ELF targets.
if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"] )
diff --git a/gas/testsuite/gas/i386/sub.d b/gas/testsuite/gas/i386/sub.d
new file mode 100644
index 0000000..597ae41
--- /dev/null
+++ b/gas/testsuite/gas/i386/sub.d
@@ -0,0 +1,10 @@
+#objdump: -drw
+#name: i386 sub
+
+.*: +file format .*i386.*
+
+Disassembly of section .text:
+
+0+000 <foo>:
+ 0: 66 be (0|1)(0|2) 00[ ]+mov[ ]+\$0x(1)?(0|2),%si[ ]+2:[ ]+(R_386_PC|DISP)16[ ]+.data(\+0xfffffff0)?
+.*
diff --git a/gas/testsuite/gas/i386/sub.s b/gas/testsuite/gas/i386/sub.s
new file mode 100644
index 0000000..3e03db0
--- /dev/null
+++ b/gas/testsuite/gas/i386/sub.s
@@ -0,0 +1,11 @@
+ .text
+ .global foo
+foo:
+ movw $bar-foo,%si
+
+ # Force a good alignment.
+ .p2align 4,0
+
+ .data
+bar:
+ .long 0