+2009-01-15 Nick Clifton <nickc@redhat.com>
+
+ PR 9722
+ * config/tc-arm.c (do_t_nop): Check for availability of Thumb2
+ instructions before generating a Thumb2 nop.
+
2009-01-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/tc-s390.h: Define LOCAL_LABEL_PREFIX.
}
else
{
- inst.instruction = THUMB_OP16 (inst.instruction);
- inst.instruction |= inst.operands[0].imm << 4;
+ /* PR9722: Check for Thumb2 availability before
+ generating a thumb2 nop instruction. */
+ if (ARM_CPU_HAS_FEATURE (cpu_variant, arm_arch_t2))
+ {
+ inst.instruction = THUMB_OP16 (inst.instruction);
+ inst.instruction |= inst.operands[0].imm << 4;
+ }
+ else
+ inst.instruction = 0x46c0;
}
}
else
+2009-01-15 Nick Clifton <nickc@redhat.com>
+
+ PR 9722
+ * gas/testsuite/gas/arm/archv6m.d: Update expected NOP opcode.
+ * gas/testsuite/gas/arm/pr9722.s: New test.
+ * gas/testsuite/gas/arm/pr9722.d: Expected disassembly.
+
2009-01-14 Peter Bergner <bergner@vnet.ibm.com>
* gas/ppc/power6.s ("mtfsf", "mtfsf.", "mtfsfi", "mtfsfi."): Add tests.
0[0-9a-f]+ <[^>]+> bf30 wfi
0[0-9a-f]+ <[^>]+> bf40 sev
0[0-9a-f]+ <[^>]+> 4408 add r0, r1
-0[0-9a-f]+ <[^>]+> bf00 nop
+0[0-9a-f]+ <[^>]+> 46c0 nop.*
--- /dev/null
+#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix* *-*-vxworks
+#objdump: -dr --prefix-addresses --show-raw-insn
+#name: PR9722: Generation of Thumb NOP instruction
+
+.*: +file format .*arm.*
+
+Disassembly of section .text:
+0+0 <.*> 46c0[ ]+nop.*
+0+2 <.*> 46c0[ ]+nop.*
+0+4 <.*> bf00[ ]+nop
--- /dev/null
+ .thumb
+ .text
+ .arch armv4t
+ nop
+ .syntax unified
+ nop
+ .arch armv6t2
+ nop