* gas/arm/noarm.s: Add test for disabled ARM insns.
authorJulian Brown <julian@codesourcery.com>
Wed, 16 Aug 2006 10:32:40 +0000 (10:32 +0000)
committerJulian Brown <julian@codesourcery.com>
Wed, 16 Aug 2006 10:32:40 +0000 (10:32 +0000)
* gas/arm/noarm.d: Drive test for above.
* gas/arm/noarm.l: Expected error output.

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

index 0e1cf6f7bfd7ec7455e6f7be89c3d2660276e9c4..35220b60d68de961abc7e53da5af10fdbf0e217e 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-16  Julian Brown  <julian@codesourcery.com>
+
+       * gas/arm/noarm.s: Add test for disabled ARM insns.
+       * gas/arm/noarm.d: Drive test for above.
+       * gas/arm/noarm.l: Expected error output.
+
 2006-08-15  Thiemo Seufer  <ths@mips.com>
             Nigel Stephens  <nigel@mips.com>
             David Ung  <davidu@mips.com>
diff --git a/gas/testsuite/gas/arm/noarm.d b/gas/testsuite/gas/arm/noarm.d
new file mode 100644 (file)
index 0000000..ae34f83
--- /dev/null
@@ -0,0 +1,3 @@
+# name: Disallow ARM instructions on V7M
+# as: 
+# error-output: noarm.l
diff --git a/gas/testsuite/gas/arm/noarm.l b/gas/testsuite/gas/arm/noarm.l
new file mode 100644 (file)
index 0000000..edc59a2
--- /dev/null
@@ -0,0 +1,3 @@
+[^:]*: Assembler messages:
+[^:]*:12: Error: selected processor does not support ARM opcodes
+[^:]*:13: Error: attempt to use an ARM instruction on a Thumb-only processor -- `nop'
diff --git a/gas/testsuite/gas/arm/noarm.s b/gas/testsuite/gas/arm/noarm.s
new file mode 100644 (file)
index 0000000..3dadd44
--- /dev/null
@@ -0,0 +1,13 @@
+        .arch armv7a
+        .syntax unified
+       .text
+func:
+       nop
+       movw r0, #0
+
+       .arch armv7
+       .thumb
+       nop
+       movw r0, #0
+       .arm
+       nop