aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-11-17 22:16:31 +0000
committerOwen Anderson <resistor@mac.com>2010-11-17 22:16:31 +0000
commit2f7aed39a3082a3e0bb35475e8ed0cb782fef4b5 (patch)
tree129a93b1faafc9b50f1446bdf8573fac58936316 /test/MC/ARM
parent0129be281eea2c22a925873f2e1cd5cc978ae87c (diff)
downloadexternal_llvm-2f7aed39a3082a3e0bb35475e8ed0cb782fef4b5.zip
external_llvm-2f7aed39a3082a3e0bb35475e8ed0cb782fef4b5.tar.gz
external_llvm-2f7aed39a3082a3e0bb35475e8ed0cb782fef4b5.tar.bz2
Second attempt at correct encodings for Thumb2 bitfield instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119575 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/ARM')
-rw-r--r--test/MC/ARM/thumb2.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/ARM/thumb2.s b/test/MC/ARM/thumb2.s
index eb5336f..8276349 100644
--- a/test/MC/ARM/thumb2.s
+++ b/test/MC/ARM/thumb2.s
@@ -52,3 +52,14 @@
@ CHECK: rrx r0, r0 @ encoding: [0x30,0x00,0x4f,0xea]
rrx r0, r0
+@ CHECK: bfc r0, #4, #20 @ encoding: [0x17,0x10,0x6f,0xf3]
+ bfc r0, #4, #20
+@ CHECK: bfc r0, #0, #23 @ encoding: [0x16,0x00,0x6f,0xf3]
+ bfc r0, #0, #23
+@ CHECK: bfc r0, #12, #20 @ encoding: [0x1f,0x30,0x6f,0xf3]
+ bfc r0, #12, #20
+
+@ CHECK: sbfx r0, r0, #7, #11 @ encoding: [0xca,0x10,0x40,0xf3]
+ sbfx r0, r0, #7, #11
+@ CHECK: ubfx r0, r0, #7, #11 @ encoding: [0xca,0x10,0xc0,0xf3]
+ ubfx r0, r0, #7, #11