2010-11-12 21:12:40 +00:00
|
|
|
@ RUN: llvm-mc -mcpu=cortex-a8 -triple thumb-unknown-unknown -show-encoding < %s | FileCheck %s
|
|
|
|
@ XFAIL: *
|
|
|
|
.code 16
|
|
|
|
|
|
|
|
@ CHECK: adc r1, r1, #171 @ encoding: [0xab,0x01,0x41,0xf1]
|
|
|
|
adc r1, r1, #171
|
|
|
|
@ CHECK: adc r1, r1, #1179666 @ encoding: [0x12,0x11,0x41,0xf1]
|
|
|
|
adc r1, r1, #1179666
|
|
|
|
@ CHECK: adc r1, r1, #872428544 @ encoding: [0x34,0x21,0x41,0xf1]
|
|
|
|
adc r1, r1, #872428544
|
|
|
|
@ CHECK: adc r1, r1, #1448498774 @ encoding: [0x56,0x31,0x41,0xf1]
|
|
|
|
adc r1, r1, #1448498774
|
|
|
|
@ CHECK: adc r1, r1, #66846720 @ encoding: [0x7f,0x71,0x41,0xf1]
|
|
|
|
adc r1, r1, #66846720
|
2010-11-15 18:45:17 +00:00
|
|
|
|
|
|
|
@ CHECK: mvn r0, #187 @ encoding: [0xbb,0x00,0x6f,0xf0]
|
|
|
|
mvn r0, #187
|
|
|
|
@ CHECK: mvn r0, #11141290 @ encoding: [0xaa,0x10,0x6f,0xf0]
|
|
|
|
mvn r0, #11141290
|
|
|
|
@ CHECK: mvn r0, #-872363008 @ encoding: [0xcc,0x20,0x6f,0xf0]
|
|
|
|
mvn r0, #-872363008
|
|
|
|
@ CHECK: mvn r0, #1114112 @ encoding: [0x88,0x10,0x6f,0xf4]
|
2010-11-15 19:58:36 +00:00
|
|
|
mvn r0, #1114112
|
|
|
|
|
|
|
|
@ CHECK: cmp.w r0, #11141290 @ encoding: [0xaa,0x1f,0xb0,0xf1]
|
|
|
|
cmp.w r0, #11141290
|
|
|
|
@ CHECK: cmp.w r0, #-872363008 @ encoding: [0xcc,0x2f,0xb0,0xf1]
|
|
|
|
cmp.w r0, #-872363008
|
|
|
|
@ CHECK: cmp.w r0, #-572662307 @ encoding: [0xdd,0x3f,0xb0,0xf1]
|
|
|
|
cmp.w r0, #-572662307
|
|
|
|
@ CHECK: cmp.w r0, #1114112 @ encoding: [0x88,0x1f,0xb0,0xf5]
|
|
|
|
cmp.w r0, #1114112
|
|
|
|
@ CHECK: cmp.w r0, r1, lsl #5 @ encoding: [0x41,0x1f,0xb0,0xeb]
|
2010-11-15 21:12:05 +00:00
|
|
|
cmp.w r0, r1, lsl #5
|
|
|
|
|
|
|
|
@ CHECK: sxtab r0, r1, r0 @ encoding: [0x80,0xf0,0x41,0xfa]
|
2010-11-16 00:29:56 +00:00
|
|
|
sxtab r0, r1, r0 @ encoding: [0x80,0xf0,0x41,0xfa]
|
|
|
|
|
|
|
|
@ CHECK: movw r0, #65535 @ encoding: [0xff,0x70,0x4f,0xf6]
|
|
|
|
movw r0, #65535
|
|
|
|
@ CHECK: movw r1, #43777 @ encoding: [0x01,0x31,0x4a,0xf6]
|
|
|
|
movw r1, #43777
|
|
|
|
@ CHECK: movt r1, #427 @ encoding: [0xab,0x11,0xc0,0xf2]
|
|
|
|
movt r1, #427
|
|
|
|
@ CHECK: movw r1, #43792 @ encoding: [0x10,0x31,0x4a,0xf6]
|
|
|
|
movw r1, #43792
|
|
|
|
@ CHECK: movt r1, #4267 @ encoding: [0xab,0x01,0xc0,0xf2]
|
|
|
|
movt r1, #4267
|
|
|
|
@ CHECK: mov.w r0, #66846720 @ encoding: [0x7f,0x70,0x4f,0xf0]
|
|
|
|
mov.w r0, #66846720
|
2010-11-17 19:57:38 +00:00
|
|
|
|
|
|
|
@ CHECK: rrx r0, r0 @ encoding: [0x30,0x00,0x4f,0xea]
|
|
|
|
rrx r0, r0
|
|
|
|
|
2010-11-17 22:16:31 +00:00
|
|
|
@ 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
|
2010-11-18 01:08:42 +00:00
|
|
|
|
|
|
|
@ CHECK: mla r0, r0, r1, r2 @ encoding: [0x01,0x20,0x00,0xfb]
|
|
|
|
mla r0, r0, r1, r2
|
|
|
|
@ CHECK: mls r0, r0, r1, r2 @ encoding: [0x11,0x20,0x00,0xfb]
|
|
|
|
mls r0, r0, r1, r2
|
2010-11-18 20:32:18 +00:00
|
|
|
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: smlabt r0, r1, r2, r0 @ encoding: [0x12,0x00,0x11,0xfb]
|
2010-11-18 20:32:18 +00:00
|
|
|
smlabt r0, r1, r2, r0
|
2010-11-18 21:15:19 +00:00
|
|
|
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: clz r0, r0 @ encoding: [0x80,0xf0,0xb0,0xfa]
|
2010-11-18 21:15:19 +00:00
|
|
|
clz r0, r0
|
|
|
|
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhbt r0, r0, r1, lsl #16 @ encoding: [0x01,0x40,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhbt r0, r0, r1, lsl #16
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhbt r0, r0, r1, lsl #12 @ encoding: [0x01,0x30,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhbt r0, r0, r1, lsl #16
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhbt r0, r0, r1, lsl #18 @ encoding: [0x81,0x40,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhbt r0, r0, r1, lsl #18
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhbt r0, r0, r1 @ encoding: [0x01,0x00,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhbt r0, r0, r1
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhtb r0, r0, r1, asr #16 @ encoding: [0x21,0x40,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhtb r0, r0, r1, asr #16
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhtb r0, r0, r1, asr #12 @ encoding: [0x21,0x30,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhtb r0, r0, r1, asr #12
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhtb r0, r0, r1, asr #18 @ encoding: [0xa1,0x40,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhtb r0, r0, r1, asr #18
|
2010-11-18 23:29:56 +00:00
|
|
|
@ CHECK: pkhtb r0, r0, r1, asr #22 @ encoding: [0xa1,0x50,0xc0,0xea]
|
2010-11-18 21:15:19 +00:00
|
|
|
pkhtb r0, r0, r1, asr #22
|
2010-11-18 23:29:56 +00:00
|
|
|
|
|
|
|
@ CHECK: dmb st @ encoding: [0x5e,0x8f,0xbf,0xf3]
|
|
|
|
dmb st
|
|
|
|
@ CHECK: dmb sy @ encoding: [0x5f,0x8f,0xbf,0xf3]
|
|
|
|
dmb sy
|
|
|
|
@ CHECK: dmb ishst @ encoding: [0x5a,0x8f,0xbf,0xf3]
|
|
|
|
dmb ishst
|
|
|
|
@ CHECK: dmb ish @ encoding: [0x5b,0x8f,0xbf,0xf3]
|
|
|
|
dmb ish
|
2010-11-18 23:30:10 +00:00
|
|
|
|
2010-11-29 22:44:32 +00:00
|
|
|
@ CHECK: str.w r0, [r1, #4092] @ encoding: [0xfc,0x0f,0xc1,0xf8]
|
|
|
|
str.w r0, [r1, #4092]
|
|
|
|
@ CHECK: str r0, [r1, #-128] @ encoding: [0x80,0x0c,0x41,0xf8]
|
|
|
|
str r0, [r1, #-128]
|
|
|
|
@ CHECK: str.w r0, [r1, r2, lsl #2] @ encoding: [0x22,0x00,0x41,0xf8
|
|
|
|
str.w r0, [r1, r2, lsl #2]
|
|
|
|
|
|
|
|
@ CHECK: ldr.w r0, [r0, #4092] @ encoding: [0xfc,0x0f,0xd0,0xf8]
|
|
|
|
ldr.w r0, [r0, #4092]
|
|
|
|
@ CHECK: ldr r0, [r0, #-128] @ encoding: [0x80,0x0c,0x50,0xf8]
|
|
|
|
ldr r0, [r0, #-128]
|
|
|
|
@ CHECK: ldr.w r0, [r0, r1, lsl #2] @ encoding: [0x21,0x00,0x50,0xf8]
|
|
|
|
ldr.w r0, [r0, r1, lsl #2]
|
|
|
|
|