aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2008-06-16 15:05:55 +0000
committerHans-Peter Nilsson <hp@axis.com>2008-06-16 15:05:55 +0000
commit4758f280d47cce2c35c929a3ed25f894978153d9 (patch)
treef28cb9612a7072881dfe5a0c105ef68bf568187d /gas
parent1afc8defa6693f44bfe41ac49d62c2d6b4e62f69 (diff)
downloadgdb-4758f280d47cce2c35c929a3ed25f894978153d9.zip
gdb-4758f280d47cce2c35c929a3ed25f894978153d9.tar.gz
gdb-4758f280d47cce2c35c929a3ed25f894978153d9.tar.bz2
PR gas/6607
* gas/mmix/err-loc-10.s, gas/mmix/err-loc-9.s, gas/mmix/loc-6.d, gas/mmix/loc-6.s, gas/mmix/loc-7.d, gas/mmix/loc-7.s: New tests.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/mmix/err-loc-10.s5
-rw-r--r--gas/testsuite/gas/mmix/err-loc-9.s5
-rw-r--r--gas/testsuite/gas/mmix/loc-6.d10
-rw-r--r--gas/testsuite/gas/mmix/loc-6.s5
-rw-r--r--gas/testsuite/gas/mmix/loc-7.d11
-rw-r--r--gas/testsuite/gas/mmix/loc-7.s7
7 files changed, 49 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 9f0212a..12aa8b1 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
+
+ PR gas/6607
+ * gas/mmix/err-loc-10.s, gas/mmix/err-loc-9.s, gas/mmix/loc-6.d,
+ gas/mmix/loc-6.s, gas/mmix/loc-7.d, gas/mmix/loc-7.s: New tests.
+
2008-06-12 Adam Nemet <anemet@caviumnetworks.com>
* gas/mips/octeon.s, gas/mips/octeon.d: Add tests for baddu,
diff --git a/gas/testsuite/gas/mmix/err-loc-10.s b/gas/testsuite/gas/mmix/err-loc-10.s
new file mode 100644
index 0000000..df39f94
--- /dev/null
+++ b/gas/testsuite/gas/mmix/err-loc-10.s
@@ -0,0 +1,5 @@
+% { dg-do assemble { target mmix-*-* } }
+ LOC (#80 << 56) + #200
+ TETRA 1
+ LOC (#80 << 56) + #100 % { dg-error "LOC expression stepping backwards" "" }
+ TETRA 2
diff --git a/gas/testsuite/gas/mmix/err-loc-9.s b/gas/testsuite/gas/mmix/err-loc-9.s
new file mode 100644
index 0000000..2b832c3
--- /dev/null
+++ b/gas/testsuite/gas/mmix/err-loc-9.s
@@ -0,0 +1,5 @@
+% { dg-do assemble { target mmix-*-* } }
+ LOC (#70 << 56) + #200
+ TETRA 1
+ LOC (#70 << 56) + #100 % { dg-error "LOC expression stepping backwards" "" }
+ TETRA 2
diff --git a/gas/testsuite/gas/mmix/loc-6.d b/gas/testsuite/gas/mmix/loc-6.d
new file mode 100644
index 0000000..8303e21
--- /dev/null
+++ b/gas/testsuite/gas/mmix/loc-6.d
@@ -0,0 +1,10 @@
+#readelf: -srx1
+There are no relocations in this file\.
+
+Symbol table '\.symtab' contains . entries:
+ Num: Value Size Type Bind Vis Ndx Name
+#...
+ .: 8000000000000000 0 NOTYPE GLOBAL DEFAULT ABS __\.MMIX\.start\.\.text
+
+Hex dump of section '\.text':
+ 0x0+ f4000000 .*
diff --git a/gas/testsuite/gas/mmix/loc-6.s b/gas/testsuite/gas/mmix/loc-6.s
new file mode 100644
index 0000000..9831b5d
--- /dev/null
+++ b/gas/testsuite/gas/mmix/loc-6.s
@@ -0,0 +1,5 @@
+% Check that we don't get an error on the LOC directive; that we don't
+% interpret it as a (section-relative) negative number.
+
+ LOC #8000000000000000
+Boot GETA $0,Boot %set dynamic- and forced-trap handler
diff --git a/gas/testsuite/gas/mmix/loc-7.d b/gas/testsuite/gas/mmix/loc-7.d
new file mode 100644
index 0000000..1341274
--- /dev/null
+++ b/gas/testsuite/gas/mmix/loc-7.d
@@ -0,0 +1,11 @@
+#readelf: -srx1
+There are no relocations in this file\.
+
+Symbol table '\.symtab' contains . entries:
+ Num: Value Size Type Bind Vis Ndx Name
+#...
+ .: 8000000000042000 0 NOTYPE GLOBAL DEFAULT ABS __\.MMIX\.start\.\.text
+
+Hex dump of section '\.text':
+ 0x0+ f4000000 00000000 00000000 00000000 .*
+ 0x0+10 f4050000 .*
diff --git a/gas/testsuite/gas/mmix/loc-7.s b/gas/testsuite/gas/mmix/loc-7.s
new file mode 100644
index 0000000..89b905e
--- /dev/null
+++ b/gas/testsuite/gas/mmix/loc-7.s
@@ -0,0 +1,7 @@
+% Check that we don't get an error on the LOC directive; that we don't
+% interpret it as a (section-relative) negative number.
+
+ LOC #8000000000042000
+Boot GETA $0,Boot %set dynamic- and forced-trap handler
+ LOC #8000000000042010
+Toot GETA $5,Toot