From 07161fb2ba6b9a414073396f08c93718b28f115b Mon Sep 17 00:00:00 2001 From: Julian Brown Date: Wed, 16 Aug 2006 10:32:40 +0000 Subject: [PATCH] * 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. --- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/arm/noarm.d | 3 +++ gas/testsuite/gas/arm/noarm.l | 3 +++ gas/testsuite/gas/arm/noarm.s | 13 +++++++++++++ 4 files changed, 25 insertions(+) create mode 100644 gas/testsuite/gas/arm/noarm.d create mode 100644 gas/testsuite/gas/arm/noarm.l create mode 100644 gas/testsuite/gas/arm/noarm.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 0e1cf6f7bfd..35220b60d68 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-08-16 Julian Brown + + * 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 Nigel Stephens David Ung diff --git a/gas/testsuite/gas/arm/noarm.d b/gas/testsuite/gas/arm/noarm.d new file mode 100644 index 00000000000..ae34f8342f9 --- /dev/null +++ b/gas/testsuite/gas/arm/noarm.d @@ -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 index 00000000000..edc59a2d537 --- /dev/null +++ b/gas/testsuite/gas/arm/noarm.l @@ -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 index 00000000000..3dadd4468f1 --- /dev/null +++ b/gas/testsuite/gas/arm/noarm.s @@ -0,0 +1,13 @@ + .arch armv7a + .syntax unified + .text +func: + nop + movw r0, #0 + + .arch armv7 + .thumb + nop + movw r0, #0 + .arm + nop -- 2.30.2