2010-04-02 22:27:38 +00:00
|
|
|
# RUN: llvm-mc --disassemble %s -triple=thumb-apple-darwin9 | FileCheck %s
|
|
|
|
|
|
|
|
# CHECK: add r5, sp, #68
|
|
|
|
0x11 0xad
|
|
|
|
|
|
|
|
# CHECK: adcs r0, r0, #1
|
|
|
|
0x50 0xf1 0x01 0x00
|
|
|
|
|
|
|
|
# CHECK: b #34
|
|
|
|
0x0f 0xe0
|
|
|
|
|
2010-04-19 21:19:52 +00:00
|
|
|
# CHECK: b.w #-12
|
|
|
|
0xff 0xf7 0xf8 0xaf
|
|
|
|
|
2010-04-02 22:27:38 +00:00
|
|
|
# CHECK: bfi r2, r10, #0, #1
|
|
|
|
0x6a 0xf3 0x00 0x02
|
|
|
|
|
|
|
|
# CHECK: cbnz r7, #20
|
|
|
|
0x57 0xb9
|
|
|
|
|
|
|
|
# CHECK: cmp r3, r4
|
|
|
|
0xa3 0x42
|
|
|
|
|
|
|
|
# CHECK: cmn.w r0, #31
|
|
|
|
0x10 0xf1 0x1f 0x0f
|
|
|
|
|
|
|
|
# CHECK: ldmia r0!, {r1}
|
|
|
|
0x02 0xc8
|
|
|
|
|
For t2LDRT, t2LDRBT, t2LDRHT, t2LDRSBT, and t2LDRSHT, if Rn(Inst{19-16})=='1111',
transform the Opcode to the corresponding t2LDR*pci counterpart.
Ref: A8.6.86 LDRT, A8.6.65 LDRBT, A8.6.77 LDRHT, A8.6.81 LDRSBT, A8.6.85 LDRSHT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101915 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-20 17:28:50 +00:00
|
|
|
# CHECK: ldrb.w r8, #-24
|
|
|
|
0x1f 0xf8 0x18 0x80
|
|
|
|
|
2010-04-02 22:27:38 +00:00
|
|
|
# CHECK: ldrd r0, r1, [r7, #64]!
|
|
|
|
0xf7 0xe9 0x10 0x01
|
|
|
|
|
|
|
|
# CHECK: lsls.w r0, pc, #1
|
|
|
|
0x5f 0xea 0x4f 0x00
|
|
|
|
|
|
|
|
# CHECK: mov r11, r7
|
|
|
|
0xbb 0x46
|
|
|
|
|
|
|
|
# CHECK: pkhtb r2, r4, r6, asr #16
|
|
|
|
0xc4 0xea 0x26 0x42
|
|
|
|
|
|
|
|
# CHECK: pop {r2, r4, r6, r8, r10, r12}
|
|
|
|
0xbd 0xe8 0x54 0x15
|
|
|
|
|
|
|
|
# CHECK: push {r2, r4, r6, r8, r10, r12}
|
|
|
|
0x2d 0xe9 0x54 0x15
|
|
|
|
|
|
|
|
# CHECK: rsbs r0, r0, #0
|
|
|
|
0x40 0x42
|
|
|
|
|
|
|
|
# CHECK: strd r0, [r7, #64]
|
|
|
|
0xc7 0xe9 0x10 0x01
|
|
|
|
|
|
|
|
# CHECK: sub sp, #60
|
|
|
|
0x8f 0xb0
|
|
|
|
|
|
|
|
# CHECK: subw r0, pc, #1
|
|
|
|
0xaf 0xf2 0x01 0x00
|
|
|
|
|
2010-04-20 18:45:24 +00:00
|
|
|
# CHECK: subw r0, sp, #835
|
|
|
|
0xad 0xf2 0x43 0x30
|
|
|
|
|
2010-04-02 22:27:38 +00:00
|
|
|
# CHECK: uqadd16 r3, r4, r5
|
|
|
|
0x94 0xfa 0x55 0xf3
|
|
|
|
|
|
|
|
# CHECK: usada8 r5, r4, r3, r2
|
|
|
|
0x74 0xfb 0x03 0x25
|
|
|
|
|
|
|
|
# CHECK: uxtab16 r1, r2, r3, ror #8
|
|
|
|
0x32 0xfa 0x93 0xf1
|
|
|
|
|
|
|
|
# IT block begin
|
|
|
|
# CHECK: ittte eq
|
|
|
|
0x03 0xbf
|
|
|
|
|
|
|
|
# CHECK: moveq r3, #3
|
|
|
|
0x03 0x23
|
|
|
|
|
|
|
|
# CHECK: asreq r1, r0, #5
|
|
|
|
0x41 0x11
|
|
|
|
|
|
|
|
# CHECK: lsleq r1, r0, #28
|
|
|
|
0x01 0x07
|
|
|
|
|
2010-04-21 01:01:19 +00:00
|
|
|
# CHECK: stmiane r0!, {r1, r2, r3}
|
|
|
|
0x0e 0xc0
|
|
|
|
|
2010-04-02 22:27:38 +00:00
|
|
|
# IT block end
|
2010-04-21 01:01:19 +00:00
|
|
|
# CHECK: rsbs r1, r2, #0
|
|
|
|
0x51 0x42
|