* 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.
This commit is contained in:
Julian Brown 2006-08-16 10:32:40 +00:00
parent 267d2029e7
commit 07161fb2ba
4 changed files with 25 additions and 0 deletions

View 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>

View file

@ -0,0 +1,3 @@
# name: Disallow ARM instructions on V7M
# as:
# error-output: noarm.l

View file

@ -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'

View file

@ -0,0 +1,13 @@
.arch armv7a
.syntax unified
.text
func:
nop
movw r0, #0
.arch armv7
.thumb
nop
movw r0, #0
.arm
nop