OSDN Git Service

* gas/arm/thumbv6.s: Add nops.
authormmitchel <mmitchel>
Mon, 15 Dec 2003 04:47:23 +0000 (04:47 +0000)
committermmitchel <mmitchel>
Mon, 15 Dec 2003 04:47:23 +0000 (04:47 +0000)
* gas/arm/thumbv6.d: Use -M force-thumb option to objdump.  Add nops.

gas/testsuite/ChangeLog
gas/testsuite/gas/arm/thumbv6.d
gas/testsuite/gas/arm/thumbv6.s

index 5b2d0fc..7e83739 100644 (file)
@@ -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.
index e8f54f5..b460d64 100644 (file)
@@ -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\)
index b02d60c..a404975 100644 (file)
@@ -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