* gas/arm/arm.exp: Add "undefined" test.
authorDaniel Jacobowitz <drow@false.org>
Fri, 23 Jan 2004 16:29:25 +0000 (16:29 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 23 Jan 2004 16:29:25 +0000 (16:29 +0000)
* gas/arm/undefined.s, gas/arm/undefined.l: New files.

gas/testsuite/ChangeLog
gas/testsuite/gas/arm/arm.exp
gas/testsuite/gas/arm/undefined.l [new file with mode: 0644]
gas/testsuite/gas/arm/undefined.s [new file with mode: 0644]

index db61700d9f034690efaf3de20df4cc797e595f16..ef4e62b9212439feab7fb2c82b8e3332f5a166c9 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gas/arm/arm.exp: Add "undefined" test.
+       * gas/arm/undefined.s, gas/arm/undefined.l: New files.
+
 2004-01-23  Richard Sandiford  <rsandifo@redhat.com>
 
        * gas/mips/macro-warn-[1234].[sdl]: New tests.
index 9816497bd4ec26b6c0605b95339605c5368f2897..e5ec8be412688bcc8b51bdc9848afd502c18efee 100644 (file)
@@ -86,6 +86,8 @@ if {[istarget *arm*-*-*] || [istarget "xscale-*-*"]} then {
     }
 
     gas_test "offset.s" "" $stdoptlist "OFFSET_IMM regression"
+
+    run_errors_test "undefined" "" "Undefined local label error"
 }
 
 # Not all arm targets are bi-endian, so only run this test on ones
diff --git a/gas/testsuite/gas/arm/undefined.l b/gas/testsuite/gas/arm/undefined.l
new file mode 100644 (file)
index 0000000..89cfa04
--- /dev/null
@@ -0,0 +1,2 @@
+[^:]*: Assembler messages:
+[^:]*:1: Error: undefined local label `\.Lval'
diff --git a/gas/testsuite/gas/arm/undefined.s b/gas/testsuite/gas/arm/undefined.s
new file mode 100644 (file)
index 0000000..f7b76d7
--- /dev/null
@@ -0,0 +1 @@
+       ldr     a1, .Lval