summaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-11-22 04:47:17 +0000
committerAlan Modra <amodra@gmail.com>2003-11-22 04:47:17 +0000
commitbd55cd2b21b8b57a67786c7b5b67f188761fc35c (patch)
tree527069f5f55363862326b7fd189c45f0d4146338 /gas/testsuite
parent9a124774374d378aa1143a2a298f836f0136ee32 (diff)
downloadbinutils-gdb-bd55cd2b21b8b57a67786c7b5b67f188761fc35c.tar.gz
* gas/i386/divide.s: New.
* gas/i386/divide.d: New. * gas/i386/i386.exp (gas_32_check): Run it.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/i386/divide.d8
-rw-r--r--gas/testsuite/gas/i386/divide.s4
-rw-r--r--gas/testsuite/gas/i386/i386.exp1
4 files changed, 17 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 447d3f68489..21bc55e9174 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2003-11-22 Alan Modra <amodra@bigpond.net.au>
+ * gas/i386/divide.s: New.
+ * gas/i386/divide.d: New.
+ * gas/i386/i386.exp (gas_32_check): Run it.
+
* gas/ppc/machine.s: New.
* gas/ppc/machine.d: New.
* gas/ppc/ppc.exp: Run it.
diff --git a/gas/testsuite/gas/i386/divide.d b/gas/testsuite/gas/i386/divide.d
new file mode 100644
index 00000000000..be54254be4a
--- /dev/null
+++ b/gas/testsuite/gas/i386/divide.d
@@ -0,0 +1,8 @@
+#objdump: -s
+#name: i386 divide
+
+.*: +file format .*
+
+Contents of section .*
+ 0000 01000000 02000000 03000000 04000000 .*
+ 0010 05000000 .*
diff --git a/gas/testsuite/gas/i386/divide.s b/gas/testsuite/gas/i386/divide.s
new file mode 100644
index 00000000000..6a22dedae58
--- /dev/null
+++ b/gas/testsuite/gas/i386/divide.s
@@ -0,0 +1,4 @@
+start:
+ .long 1,2,3,a,b
+ a=(.-start)/4-1
+b=(.-start)/4
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 04bf95e8862..c0203faa158 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -57,6 +57,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "pcrel"
run_dump_test "sub"
run_dump_test "prescott"
+ run_dump_test "divide"
# PIC is only supported on ELF targets.
if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"] )