1 @ RUN: llvm-mc -triple thumbv6m -show-encoding < %s | FileCheck %s
4 @ CHECK: adds r1, r1, #3 @ encoding: [0xc9,0x1c]
7 @ CHECK: adds r1, #3 @ encoding: [0x03,0x31]
10 @ CHECK: adds r0, #8 @ encoding: [0x08,0x30]
13 @ CHECK: adds r0, r0, r0 @ encoding: [0x00,0x18]
16 @ CHECK: add r0, r8 @ encoding: [0x40,0x44]
19 @ CHECK: add r1, r8 @ encoding: [0x41,0x44]
22 @ CHECK: add sp, r0 @ encoding: [0x85,0x44]
25 @ CHECK: add r4, sp, r4 @ encoding: [0x6c,0x44]
28 @ CHECK: add r4, sp @ encoding: [0x6c,0x44]
31 @ FIXME: ARMARM says 'add sp, sp, #32'
32 @ CHECK: add sp, #32 @ encoding: [0x08,0xb0]
35 @ CHECK: add r5, sp, #1016 @ encoding: [0xfe,0xad]
38 @ CHECK: add r0, r1 @ encoding: [0x08,0x44]
41 @ CHECK: add r2, r3 @ encoding: [0x1a,0x44]
44 @ CHECK: subs r0, r0, r0 @ encoding: [0x00,0x1a]
47 @ CHECK: subs r3, r3, #5 @ encoding: [0x5b,0x1f]
50 @ CHECK: subs r3, #5 @ encoding: [0x05,0x3b]
53 @ CHECK: subs r2, #8 @ encoding: [0x08,0x3a]
56 @ CHECK: sub sp, #16 @ encoding: [0x84,0xb0]
59 @ CHECK: ands r0, r1 @ encoding: [0x08,0x40]
62 @ CHECK: ands r0, r1 @ encoding: [0x08,0x40]
65 @ CHECK: eors r0, r1 @ encoding: [0x48,0x40]
68 @ CHECK: eors r0, r1 @ encoding: [0x48,0x40]
71 @ CHECK: lsls r0, r1 @ encoding: [0x88,0x40]
74 @ CHECK: lsrs r0, r1 @ encoding: [0xc8,0x40]
77 @ CHECK: asrs r0, r1 @ encoding: [0x08,0x41]
80 @ CHECK: adcs r0, r1 @ encoding: [0x48,0x41]
83 @ CHECK: adcs r0, r1 @ encoding: [0x48,0x41]
86 @ CHECK: sbcs r0, r1 @ encoding: [0x88,0x41]
89 @ CHECK: rors r0, r1 @ encoding: [0xc8,0x41]
92 @ CHECK: orrs r0, r1 @ encoding: [0x08,0x43]
95 @ CHECK: orrs r0, r1 @ encoding: [0x08,0x43]
98 @ CHECK: bics r0, r1 @ encoding: [0x88,0x43]