]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
* gas/mmix/err-fb-2.s: New test.
authorHans-Peter Nilsson <hp@axis.com>
Mon, 10 Sep 2012 09:50:23 +0000 (09:50 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Mon, 10 Sep 2012 09:50:23 +0000 (09:50 +0000)
gas/testsuite/ChangeLog
gas/testsuite/gas/mmix/err-fb-2.s [new file with mode: 0644]

index 41848fcfc85f768dcfd6b63a909acd0acd284009..e1f879682c8ac2d9138e562f040c76337f920b26 100644 (file)
@@ -1,3 +1,9 @@
+2012-09-10  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * gas/mmix/err-fb-2.s: New test.
+
+2012-09-10  Maciej W. Rozycki  <macro@codesourcery.com>
+
        * gas/mips/mips.exp: Set has_newabi for all Linux targets.
        * gas/mips/cfi-n64-1.d: Adjust for targets that do not infer the
        ISA from the ABI.
diff --git a/gas/testsuite/gas/mmix/err-fb-2.s b/gas/testsuite/gas/mmix/err-fb-2.s
new file mode 100644 (file)
index 0000000..c4edbe1
--- /dev/null
@@ -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