aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-08-14 02:29:30 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-08-14 02:29:30 +0000
commita6f7924a8348ef6344ea114278fb2befcd3118e1 (patch)
treef34e818785d1cc1c5ceabadad8ce46af51bbde42 /gas
parentc3330fbeccde0a85e17c5a13d42c5df477809347 (diff)
downloadgdb-a6f7924a8348ef6344ea114278fb2befcd3118e1.zip
gdb-a6f7924a8348ef6344ea114278fb2befcd3118e1.tar.gz
gdb-a6f7924a8348ef6344ea114278fb2befcd3118e1.tar.bz2
* gas/mmix/err-fb-2.s: New test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog4
-rw-r--r--gas/testsuite/gas/mmix/err-fb-2.s26
2 files changed, 30 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 4927e39..237f9c3 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2012-08-14 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * gas/mmix/err-fb-2.s: New test.
+
2012-08-13 Ian Bolton <ian.bolton@arm.com>
Laurent Desnogues <laurent.desnogues@arm.com>
Jim MacArthur <jim.macarthur@arm.com>
diff --git a/gas/testsuite/gas/mmix/err-fb-2.s b/gas/testsuite/gas/mmix/err-fb-2.s
new file mode 100644
index 0000000..637099f
--- /dev/null
+++ b/gas/testsuite/gas/mmix/err-fb-2.s
@@ -0,0 +1,26 @@
+# { dg-do assemble { target mmix-*-* } }
+# Mostly like fb-2.s, but with LOCs to indeterminable sections
+# *different* to the one LOC'd from. Two cases are tested: an
+# undefined symbol and a section just indeterminable at the first pass
+# (at the point of the LOC).
+
+1H IS 5
+0H LOC #10
+1H BYTE 1B
+0H LOC 2F+#20+0F # { dg-error "indeterminable" "" }
+0H IS 4
+ .section .text.unknown
+2H SWYM
+1H IS 50
+1H GREG 1B+1F
+ SWYM
+1H LDA $30,1B
+1H OCTA 1B,1F
+ LOC undefd # { dg-error "unknown" "" }
+1H SWYM
+
+9H IS 42
+ WYDE 9B,9F
+9H IS 9B+1
+ WYDE 9B,9F
+9H IS 9B+1