From 2f7aed39a3082a3e0bb35475e8ed0cb782fef4b5 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 17 Nov 2010 22:16:31 +0000 Subject: 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 --- test/MC/ARM/thumb2.s | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/MC/ARM') 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 -- cgit v1.1