aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-11-04 18:52:03 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-11-04 18:52:03 +0000
commit6c78a1f83e56688172368cfa5b5328d46df39815 (patch)
tree3ecb7232f58c032fcab94e9527b4081d197dd634
parentdecfa41eace0c91b6245c236c5286a6bc984d153 (diff)
downloadgdb-6c78a1f83e56688172368cfa5b5328d46df39815.zip
gdb-6c78a1f83e56688172368cfa5b5328d46df39815.tar.gz
gdb-6c78a1f83e56688172368cfa5b5328d46df39815.tar.bz2
2009-11-04 H.J. Lu <hongjiu.lu@intel.com>
PR gas/876 * gas/i386/i386.exp: Run space1. * gas/i386/space1.l: New. * gas/i386/space1.s: Likewise.
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/i386/i386.exp3
-rw-r--r--gas/testsuite/gas/i386/space1.l15
-rw-r--r--gas/testsuite/gas/i386/space1.s6
4 files changed, 32 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 388e54b..19b4c41 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2009-11-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/876
+ * gas/i386/i386.exp: Run space1.
+
+ * gas/i386/space1.l: New.
+ * gas/i386/space1.s: Likewise.
+
2009-11-03 Paul Brook <paul@codesourcery.com>
* gas/arm/vfp-neon-syntax.d: Update expected results.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 9d5e957..0064ebf 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -17,6 +17,9 @@ proc gas_32_check { } {
return [regexp "targets:.*i386" [lindex $status 1]];
}
+# Common tests
+run_list_test "space1" "-al"
+
if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] then {
global ASFLAGS
diff --git a/gas/testsuite/gas/i386/space1.l b/gas/testsuite/gas/i386/space1.l
new file mode 100644
index 0000000..5b0053e
--- /dev/null
+++ b/gas/testsuite/gas/i386/space1.l
@@ -0,0 +1,15 @@
+.*: Assembler messages:
+.*:2: Error: .space specifies non-absolute value
+.*:3: Error: .space specifies non-absolute value
+.*:4: Error: .space specifies non-absolute value
+.*:5: Error: .space specifies non-absolute value
+.*:6: Error: .space specifies non-absolute value
+GAS LISTING .*
+
+
+[ ]*1[ ]+\.text
+[ ]*2[ ]+\.space foo
+[ ]*3[ ]+\.space foo\*4
+[ ]*4[ ]+\.space foo\+4
+[ ]*5[ ]+\.space foo-4
+[ ]*6[ ]+\.space foo << 4
diff --git a/gas/testsuite/gas/i386/space1.s b/gas/testsuite/gas/i386/space1.s
new file mode 100644
index 0000000..7466675
--- /dev/null
+++ b/gas/testsuite/gas/i386/space1.s
@@ -0,0 +1,6 @@
+ .text
+ .space foo
+ .space foo*4
+ .space foo+4
+ .space foo-4
+ .space foo << 4