summaryrefslogtreecommitdiff
path: root/test/MC/ARM/arm-it-block.s
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-01-25 19:52:01 +0000
committerJim Grosbach <grosbach@apple.com>2012-01-25 19:52:01 +0000
commit74423e32ce7f426b624bfb0c31481bcf6a36394d (patch)
tree1ae2c4dda338f41bdf18c850a1f80f8d4f93ff8e /test/MC/ARM/arm-it-block.s
parent0c8515f0969e0a4d0b5313c6ceadd5ff4dab5998 (diff)
downloadllvm-74423e32ce7f426b624bfb0c31481bcf6a36394d.tar.gz
llvm-74423e32ce7f426b624bfb0c31481bcf6a36394d.tar.bz2
llvm-74423e32ce7f426b624bfb0c31481bcf6a36394d.tar.xz
ARM assemly parsing and validation of IT instruction.
"Although a Thumb2 instruction, the IT mnemonic shall be permitted in ARM mode, and the condition verified to match the condition code(s) on the following instruction(s)." PR11853 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM/arm-it-block.s')
-rw-r--r--test/MC/ARM/arm-it-block.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/ARM/arm-it-block.s b/test/MC/ARM/arm-it-block.s
new file mode 100644
index 0000000000..e5e549128b
--- /dev/null
+++ b/test/MC/ARM/arm-it-block.s
@@ -0,0 +1,11 @@
+@ RUN: llvm-mc -triple=armv7-apple-darwin -show-encoding < %s | FileCheck %s
+ .syntax unified
+ .globl _func
+
+_func:
+@ CHECK: _func:
+ it eq
+ moveq r2, r3
+@ 'it' is parsed but not encoded.
+@ CHECK-NOT: it
+@ CHECK: moveq r2, r3 @ encoding: [0x03,0x20,0xa0,0x01]