aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/arm/thumbv6.d6
-rw-r--r--gas/testsuite/gas/arm/thumbv6.s7
3 files changed, 17 insertions, 1 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 5b2d0fc..7e83739 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-14 Mark Mitchell <mark@codesourcery.com>
+
+ * gas/arm/thumbv6.s: Add nops.
+ * gas/arm/thumbv6.d: Use -M force-thumb option to objdump. Add nops.
+
2003-12-14 Alan Modra <amodra@bigpond.net.au>
* gas/mmix/basep-8.d: Update for lcomm symbol type change.
diff --git a/gas/testsuite/gas/arm/thumbv6.d b/gas/testsuite/gas/arm/thumbv6.d
index e8f54f5..b460d64 100644
--- a/gas/testsuite/gas/arm/thumbv6.d
+++ b/gas/testsuite/gas/arm/thumbv6.d
@@ -1,6 +1,6 @@
#name: THUMB V6 instructions
#as: -march=armv6 -mthumb
-#objdump: -dr --prefix-addresses --show-raw-insn
+#objdump: -dr --prefix-addresses --show-raw-insn -M force-thumb
.*: +file format .*arm.*
@@ -17,3 +17,7 @@ Disassembly of section .text:
0+012 <[^>]*> b251 * sxtb r1, r2
0+014 <[^>]*> b2a3 * uxth r3, r4
0+016 <[^>]*> b2f5 * uxtb r5, r6
+0+018 <[^>]*> 46c0 * nop[ ]+\(mov r8, r8\)
+0+01a <[^>]*> 46c0 * nop[ ]+\(mov r8, r8\)
+0+01c <[^>]*> 46c0 * nop[ ]+\(mov r8, r8\)
+0+01e <[^>]*> 46c0 * nop[ ]+\(mov r8, r8\)
diff --git a/gas/testsuite/gas/arm/thumbv6.s b/gas/testsuite/gas/arm/thumbv6.s
index b02d60c..a404975 100644
--- a/gas/testsuite/gas/arm/thumbv6.s
+++ b/gas/testsuite/gas/arm/thumbv6.s
@@ -15,3 +15,10 @@ label:
sxtb r1, r2
uxth r3, r4
uxtb r5, r6
+
+ # Add four nop instructions to ensure that the output is
+ # 32-byte aligned as required for arm-aout.
+ nop
+ nop
+ nop
+ nop