2013-01-31 00:30:19 +08:00
|
|
|
@ RUN: llvm-mc -mcpu=cortex-a8 -triple arm-unknown-unknown -show-encoding %s \
|
|
|
|
@ RUN: | FileCheck %s -check-prefix=ALL
|
2014-11-04 01:38:00 +08:00
|
|
|
@ RUN: llvm-mc -mcpu=cortex-a9 -triple armv7-unknown-nacl -show-encoding %s \
|
2013-01-31 00:30:19 +08:00
|
|
|
@ RUN: | FileCheck %s -check-prefix=NACL
|
|
|
|
@ RUN: llvm-mc -mcpu=cortex-a8 -mattr=+nacl-trap -triple armv7 -show-encoding %s \
|
|
|
|
@ RUN: | FileCheck %s -check-prefix=NACL
|
2010-08-11 14:37:20 +08:00
|
|
|
|
2013-01-31 00:30:19 +08:00
|
|
|
@ ALL: trap
|
|
|
|
@ ALL: encoding: [0xfe,0xde,0xff,0xe7]
|
|
|
|
@ NACL: trap
|
|
|
|
@ NACL: encoding: [0xf0,0xde,0xfe,0xe7]
|
2010-11-21 19:05:29 +08:00
|
|
|
trap
|
|
|
|
|
2010-10-29 05:28:42 +08:00
|
|
|
@ CHECK: bx lr
|
|
|
|
@ CHECK: encoding: [0x1e,0xff,0x2f,0xe1]
|
2010-11-03 06:31:46 +08:00
|
|
|
bx lr
|
2010-10-29 05:31:07 +08:00
|
|
|
|
|
|
|
@ CHECK: vqdmull.s32 q8, d17, d16
|
|
|
|
@ CHECK: encoding: [0xa0,0x0d,0xe1,0xf2]
|
2010-11-03 06:31:46 +08:00
|
|
|
vqdmull.s32 q8, d17, d16
|
2010-11-16 09:38:20 +08:00
|
|
|
|
2010-12-15 09:24:36 +08:00
|
|
|
@ CHECK: and r1, r2, r3 @ encoding: [0x03,0x10,0x02,0xe0]
|
|
|
|
and r1,r2,r3
|
|
|
|
|
2011-07-15 05:02:23 +08:00
|
|
|
@ CHECK: ands r1, r2, r3 @ encoding: [0x03,0x10,0x12,0xe0]
|
2010-12-15 09:24:36 +08:00
|
|
|
ands r1,r2,r3
|
|
|
|
|
|
|
|
@ CHECK: eor r1, r2, r3 @ encoding: [0x03,0x10,0x22,0xe0]
|
|
|
|
eor r1,r2,r3
|
|
|
|
|
2011-07-15 05:02:23 +08:00
|
|
|
@ CHECK: eors r1, r2, r3 @ encoding: [0x03,0x10,0x32,0xe0]
|
2010-12-15 09:24:36 +08:00
|
|
|
eors r1,r2,r3
|
|
|
|
|
|
|
|
@ CHECK: sub r1, r2, r3 @ encoding: [0x03,0x10,0x42,0xe0]
|
|
|
|
sub r1,r2,r3
|
|
|
|
|
2011-07-15 05:02:23 +08:00
|
|
|
@ CHECK: subs r1, r2, r3 @ encoding: [0x03,0x10,0x52,0xe0]
|
2010-12-15 09:24:36 +08:00
|
|
|
subs r1,r2,r3
|
|
|
|
|
|
|
|
@ CHECK: add r1, r2, r3 @ encoding: [0x03,0x10,0x82,0xe0]
|
|
|
|
add r1,r2,r3
|
|
|
|
|
2011-07-15 05:02:23 +08:00
|
|
|
@ CHECK: adds r1, r2, r3 @ encoding: [0x03,0x10,0x92,0xe0]
|
2010-12-15 09:24:36 +08:00
|
|
|
adds r1,r2,r3
|
|
|
|
|
|
|
|
@ CHECK: adc r1, r2, r3 @ encoding: [0x03,0x10,0xa2,0xe0]
|
|
|
|
adc r1,r2,r3
|
|
|
|
|
|
|
|
@ CHECK: bic r1, r2, r3 @ encoding: [0x03,0x10,0xc2,0xe1]
|
|
|
|
bic r1,r2,r3
|
|
|
|
|
2011-07-15 05:02:23 +08:00
|
|
|
@ CHECK: bics r1, r2, r3 @ encoding: [0x03,0x10,0xd2,0xe1]
|
2010-12-15 09:24:36 +08:00
|
|
|
bics r1,r2,r3
|
|
|
|
|
|
|
|
@ CHECK: mov r1, r2 @ encoding: [0x02,0x10,0xa0,0xe1]
|
|
|
|
mov r1,r2
|
|
|
|
|
|
|
|
@ CHECK: mvn r1, r2 @ encoding: [0x02,0x10,0xe0,0xe1]
|
|
|
|
mvn r1,r2
|
|
|
|
|
2011-07-15 05:02:23 +08:00
|
|
|
@ CHECK: mvns r1, r2 @ encoding: [0x02,0x10,0xf0,0xe1]
|
2010-12-15 09:24:36 +08:00
|
|
|
mvns r1,r2
|
|
|
|
|
2011-01-19 04:45:56 +08:00
|
|
|
@ CHECK: bfi r0, r0, #5, #7 @ encoding: [0x90,0x02,0xcb,0xe7]
|
|
|
|
bfi r0, r0, #5, #7
|
2011-01-19 04:55:11 +08:00
|
|
|
|
|
|
|
@ CHECK: bkpt #10 @ encoding: [0x7a,0x00,0x20,0xe1]
|
|
|
|
bkpt #10
|
2011-01-19 05:17:09 +08:00
|
|
|
|
2011-01-21 02:06:58 +08:00
|
|
|
@ CHECK: cdp p7, #1, c1, c1, c1, #4 @ encoding: [0x81,0x17,0x11,0xee]
|
|
|
|
cdp p7, #1, c1, c1, c1, #4
|
|
|
|
@ CHECK: cdp2 p7, #1, c1, c1, c1, #4 @ encoding: [0x81,0x17,0x11,0xfe]
|
|
|
|
cdp2 p7, #1, c1, c1, c1, #4
|
|
|
|
|
2011-03-19 06:50:18 +08:00
|
|
|
@ CHECK: add r1, r2, r3, lsl r4 @ encoding: [0x13,0x14,0x82,0xe0]
|
|
|
|
add r1, r2, r3, lsl r4
|
2011-03-25 05:04:58 +08:00
|
|
|
|
2011-05-31 11:33:27 +08:00
|
|
|
@ CHECK: ssat16 r0, #7, r0 @ encoding: [0x30,0x0f,0xa6,0xe6]
|
|
|
|
ssat16 r0, #7, r0
|
|
|
|
|
2011-10-06 01:16:40 +08:00
|
|
|
@ CHECK: cpsie none, #0 @ encoding: [0x00,0x00,0x0a,0xf1]
|
|
|
|
cpsie none, #0
|
|
|
|
|
2012-05-11 17:10:54 +08:00
|
|
|
@ CHECK: strh r3, [r2, #-0] @ encoding: [0xb0,0x30,0x42,0xe1]
|
|
|
|
strh r3, [r2, #-0]
|
|
|
|
|