[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / thumb.s
blob9a725410c3d06210685f206a11c88b835a5cbb03
1 @ RUN: llvm-mc -triple thumbv6-apple-darwin -show-encoding < %s | FileCheck %s
2 .code 16
4 cmp r1, r2
5 @ CHECK: cmp r1, r2 @ encoding: [0x91,0x42]
7 pop {r1, r2, r4}
8 @ CHECK: pop {r1, r2, r4} @ encoding: [0x16,0xbc]
10 trap
11 @ CHECK: trap @ encoding: [0xfe,0xde]
13 blx r9
14 blx r10
15 @ CHECK: blx r9 @ encoding: [0xc8,0x47]
16 @ CHECK: blx r10 @ encoding: [0xd0,0x47]
18 rev r2, r3
19 rev16 r3, r4
20 revsh r5, r6
21 @ CHECK: rev r2, r3 @ encoding: [0x1a,0xba]
22 @ CHECK: rev16 r3, r4 @ encoding: [0x63,0xba]
23 @ CHECK: revsh r5, r6 @ encoding: [0xf5,0xba]
25 sxtb r2, r3
26 sxth r2, r3
27 @ CHECK: sxtb r2, r3 @ encoding: [0x5a,0xb2]
28 @ CHECK: sxth r2, r3 @ encoding: [0x1a,0xb2]
30 tst r4, r5
31 @ CHECK: tst r4, r5 @ encoding: [0x2c,0x42]
33 uxtb r3, r6
34 uxth r3, r6
35 @ CHECK: uxtb r3, r6 @ encoding: [0xf3,0xb2]
36 @ CHECK: uxth r3, r6 @ encoding: [0xb3,0xb2]
38 ldr r3, [r1, r2]
39 @ CHECK: ldr r3, [r1, r2] @ encoding: [0x8b,0x58]
41 bkpt #2
42 @ CHECK: bkpt #2 @ encoding: [0x02,0xbe]
44 nop
45 @ CHECK: mov r8, r8 @ encoding: [0xc0,0x46]
47 cpsie aif
48 @ CHECK: cpsie aif @ encoding: [0x67,0xb6]
50 mov r0, pc
51 @ CHECK: mov r0, pc @ encoding: [0x78,0x46]