1*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -mcpu=cortex-a8 -triple arm-unknown-unknown -show-encoding %s \ 2*9880d681SAndroid Build Coastguard Worker@ RUN: | FileCheck %s -check-prefix=ALL 3*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -mcpu=cortex-a9 -triple armv7-unknown-nacl -show-encoding %s \ 4*9880d681SAndroid Build Coastguard Worker@ RUN: | FileCheck %s -check-prefix=NACL 5*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -mcpu=cortex-a8 -mattr=+nacl-trap -triple armv7 -show-encoding %s \ 6*9880d681SAndroid Build Coastguard Worker@ RUN: | FileCheck %s -check-prefix=NACL 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Worker@ ALL: trap 9*9880d681SAndroid Build Coastguard Worker@ ALL: encoding: [0xfe,0xde,0xff,0xe7] 10*9880d681SAndroid Build Coastguard Worker@ NACL: trap 11*9880d681SAndroid Build Coastguard Worker@ NACL: encoding: [0xf0,0xde,0xfe,0xe7] 12*9880d681SAndroid Build Coastguard Worker trap 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Worker@ CHECK: bx lr 15*9880d681SAndroid Build Coastguard Worker@ CHECK: encoding: [0x1e,0xff,0x2f,0xe1] 16*9880d681SAndroid Build Coastguard Worker bx lr 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker@ CHECK: vqdmull.s32 q8, d17, d16 19*9880d681SAndroid Build Coastguard Worker@ CHECK: encoding: [0xa0,0x0d,0xe1,0xf2] 20*9880d681SAndroid Build Coastguard Worker vqdmull.s32 q8, d17, d16 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Worker@ CHECK: and r1, r2, r3 @ encoding: [0x03,0x10,0x02,0xe0] 23*9880d681SAndroid Build Coastguard Worker and r1,r2,r3 24*9880d681SAndroid Build Coastguard Worker 25*9880d681SAndroid Build Coastguard Worker@ CHECK: ands r1, r2, r3 @ encoding: [0x03,0x10,0x12,0xe0] 26*9880d681SAndroid Build Coastguard Worker ands r1,r2,r3 27*9880d681SAndroid Build Coastguard Worker 28*9880d681SAndroid Build Coastguard Worker@ CHECK: eor r1, r2, r3 @ encoding: [0x03,0x10,0x22,0xe0] 29*9880d681SAndroid Build Coastguard Worker eor r1,r2,r3 30*9880d681SAndroid Build Coastguard Worker 31*9880d681SAndroid Build Coastguard Worker@ CHECK: eors r1, r2, r3 @ encoding: [0x03,0x10,0x32,0xe0] 32*9880d681SAndroid Build Coastguard Worker eors r1,r2,r3 33*9880d681SAndroid Build Coastguard Worker 34*9880d681SAndroid Build Coastguard Worker@ CHECK: sub r1, r2, r3 @ encoding: [0x03,0x10,0x42,0xe0] 35*9880d681SAndroid Build Coastguard Worker sub r1,r2,r3 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Worker@ CHECK: subs r1, r2, r3 @ encoding: [0x03,0x10,0x52,0xe0] 38*9880d681SAndroid Build Coastguard Worker subs r1,r2,r3 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Worker@ CHECK: add r1, r2, r3 @ encoding: [0x03,0x10,0x82,0xe0] 41*9880d681SAndroid Build Coastguard Worker add r1,r2,r3 42*9880d681SAndroid Build Coastguard Worker 43*9880d681SAndroid Build Coastguard Worker@ CHECK: adds r1, r2, r3 @ encoding: [0x03,0x10,0x92,0xe0] 44*9880d681SAndroid Build Coastguard Worker adds r1,r2,r3 45*9880d681SAndroid Build Coastguard Worker 46*9880d681SAndroid Build Coastguard Worker@ CHECK: adc r1, r2, r3 @ encoding: [0x03,0x10,0xa2,0xe0] 47*9880d681SAndroid Build Coastguard Worker adc r1,r2,r3 48*9880d681SAndroid Build Coastguard Worker 49*9880d681SAndroid Build Coastguard Worker@ CHECK: bic r1, r2, r3 @ encoding: [0x03,0x10,0xc2,0xe1] 50*9880d681SAndroid Build Coastguard Worker bic r1,r2,r3 51*9880d681SAndroid Build Coastguard Worker 52*9880d681SAndroid Build Coastguard Worker@ CHECK: bics r1, r2, r3 @ encoding: [0x03,0x10,0xd2,0xe1] 53*9880d681SAndroid Build Coastguard Worker bics r1,r2,r3 54*9880d681SAndroid Build Coastguard Worker 55*9880d681SAndroid Build Coastguard Worker@ CHECK: mov r1, r2 @ encoding: [0x02,0x10,0xa0,0xe1] 56*9880d681SAndroid Build Coastguard Worker mov r1,r2 57*9880d681SAndroid Build Coastguard Worker 58*9880d681SAndroid Build Coastguard Worker@ CHECK: mvn r1, r2 @ encoding: [0x02,0x10,0xe0,0xe1] 59*9880d681SAndroid Build Coastguard Worker mvn r1,r2 60*9880d681SAndroid Build Coastguard Worker 61*9880d681SAndroid Build Coastguard Worker@ CHECK: mvns r1, r2 @ encoding: [0x02,0x10,0xf0,0xe1] 62*9880d681SAndroid Build Coastguard Worker mvns r1,r2 63*9880d681SAndroid Build Coastguard Worker 64*9880d681SAndroid Build Coastguard Worker@ CHECK: bfi r0, r0, #5, #7 @ encoding: [0x90,0x02,0xcb,0xe7] 65*9880d681SAndroid Build Coastguard Worker bfi r0, r0, #5, #7 66*9880d681SAndroid Build Coastguard Worker 67*9880d681SAndroid Build Coastguard Worker@ CHECK: bkpt #10 @ encoding: [0x7a,0x00,0x20,0xe1] 68*9880d681SAndroid Build Coastguard Worker bkpt #10 69*9880d681SAndroid Build Coastguard Worker 70*9880d681SAndroid Build Coastguard Worker@ CHECK: cdp p7, #1, c1, c1, c1, #4 @ encoding: [0x81,0x17,0x11,0xee] 71*9880d681SAndroid Build Coastguard Worker cdp p7, #1, c1, c1, c1, #4 72*9880d681SAndroid Build Coastguard Worker@ CHECK: cdp2 p7, #1, c1, c1, c1, #4 @ encoding: [0x81,0x17,0x11,0xfe] 73*9880d681SAndroid Build Coastguard Worker cdp2 p7, #1, c1, c1, c1, #4 74*9880d681SAndroid Build Coastguard Worker 75*9880d681SAndroid Build Coastguard Worker@ CHECK: add r1, r2, r3, lsl r4 @ encoding: [0x13,0x14,0x82,0xe0] 76*9880d681SAndroid Build Coastguard Worker add r1, r2, r3, lsl r4 77*9880d681SAndroid Build Coastguard Worker 78*9880d681SAndroid Build Coastguard Worker@ CHECK: ssat16 r0, #7, r0 @ encoding: [0x30,0x0f,0xa6,0xe6] 79*9880d681SAndroid Build Coastguard Worker ssat16 r0, #7, r0 80*9880d681SAndroid Build Coastguard Worker 81*9880d681SAndroid Build Coastguard Worker@ CHECK: cpsie none, #0 @ encoding: [0x00,0x00,0x0a,0xf1] 82*9880d681SAndroid Build Coastguard Worker cpsie none, #0 83*9880d681SAndroid Build Coastguard Worker 84*9880d681SAndroid Build Coastguard Worker@ CHECK: strh r3, [r2, #-0] @ encoding: [0xb0,0x30,0x42,0xe1] 85*9880d681SAndroid Build Coastguard Worker strh r3, [r2, #-0] 86*9880d681SAndroid Build Coastguard Worker 87