From: Paul Brook Date: Fri, 5 Aug 2005 14:29:38 +0000 (+0000) Subject: 2005-08-05 Paul Brook X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3530c5dbca29e90c5b82ac5e9606a9c27a913b1e;p=binutils-gdb.git 2005-08-05 Paul Brook * gas/arm/thumb32.s: Use correct conditional suffixes inside IT blocks. * gas/arm/thumb2_it.d, gas/arm/thumb2_it.s: New test. --- diff --git a/gas/testsuite/gas/arm/thumb2_it.d b/gas/testsuite/gas/arm/thumb2_it.d new file mode 100644 index 00000000000..69df8157f32 --- /dev/null +++ b/gas/testsuite/gas/arm/thumb2_it.d @@ -0,0 +1,24 @@ +# name: Mixed 16 and 32-bit Thumb conditional instructions +# as: -march=armv6kt2 +# objdump: -dr --prefix-addresses --show-raw-insn + +.*: +file format .*arm.* + +Disassembly of section .text: +0+000 <[^>]+> bf05 ittet eq +0+002 <[^>]+> 1880 add.* r0, r0, r2 +0+004 <[^>]+> 4440 add.* r0, r8 +0+006 <[^>]+> 1888 add.* r0, r1, r2 +0+008 <[^>]+> eb11 0002 adds.* r0, r1, r2 +0+00c <[^>]+> 4410 add.* r0, r2 +0+00e <[^>]+> 4440 add.* r0, r8 +0+010 <[^>]+> 1880 adds.* r0, r0, r2 +0+012 <[^>]+> eb10 0008 adds.* r0, r0, r8 +0+016 <[^>]+> 1888 adds.* r0, r1, r2 +0+018 <[^>]+> bf0a itet eq +0+01a <[^>]+> 4310 orr.* r0, r2 +0+01c <[^>]+> ea40 0008 orr.* r0, r0, r8 +0+020 <[^>]+> ea50 0002 orrs.* r0, r0, r2 +0+024 <[^>]+> ea40 0002 orr.* r0, r0, r2 +0+028 <[^>]+> ea40 0008 orr.* r0, r0, r8 +0+02c <[^>]+> 4310 orrs.* r0, r2 diff --git a/gas/testsuite/gas/arm/thumb2_it.s b/gas/testsuite/gas/arm/thumb2_it.s new file mode 100644 index 00000000000..2b487573e27 --- /dev/null +++ b/gas/testsuite/gas/arm/thumb2_it.s @@ -0,0 +1,24 @@ + .text + .thumb + .syntax unified + .thumb_func +foo: + ittet eq + addeq r0, r0, r2 + addeq r0, r0, r8 + addne r0, r1, r2 + addseq r0, r1, r2 + add r0, r0, r2 + add r0, r0, r8 + adds r0, r0, r2 + adds r0, r0, r8 + adds r0, r1, r2 + + itet eq + orreq r0, r0, r2 + orrne r0, r0, r8 + orrseq r0, r0, r2 + orr r0, r0, r2 + orr r0, r0, r8 + orrs r0, r0, r2 +