[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / ARM / arm_addrmode2.s
blob53290ab0dd3ee5a92d19a7b4771ca9767e5f6351
1 @ RUN: llvm-mc -mcpu=cortex-a8 -triple arm-unknown-unknown -show-encoding %s | FileCheck %s
3 @ Post-indexed
4 @ CHECK: ldrt r1, [r0], r2 @ encoding: [0x02,0x10,0xb0,0xe6]
5 @ CHECK: ldrt r1, [r0], r2, lsr #3 @ encoding: [0xa2,0x11,0xb0,0xe6]
6 @ CHECK: ldrt r1, [r0], #4 @ encoding: [0x04,0x10,0xb0,0xe4]
7 @ CHECK: ldrt r1, [r0], #0 @ encoding: [0x00,0x10,0xb0,0xe4]
8 @ CHECK: ldrbt r1, [r0], r2 @ encoding: [0x02,0x10,0xf0,0xe6]
9 @ CHECK: ldrbt r1, [r0], r2, lsr #3 @ encoding: [0xa2,0x11,0xf0,0xe6]
10 @ CHECK: ldrbt r1, [r0], #4 @ encoding: [0x04,0x10,0xf0,0xe4]
11 @ CHECK: ldrbt r1, [r0], #0 @ encoding: [0x00,0x10,0xf0,0xe4]
12 @ CHECK: strt r1, [r0], r2 @ encoding: [0x02,0x10,0xa0,0xe6]
13 @ CHECK: strt r1, [r0], r2, lsr #3 @ encoding: [0xa2,0x11,0xa0,0xe6]
14 @ CHECK: strt r1, [r0], #4 @ encoding: [0x04,0x10,0xa0,0xe4]
15 @ CHECK: strt r1, [r0], #0 @ encoding: [0x00,0x10,0xa0,0xe4]
16 @ CHECK: strbt r1, [r0], r2 @ encoding: [0x02,0x10,0xe0,0xe6]
17 @ CHECK: strbt r1, [r0], r2, lsr #3 @ encoding: [0xa2,0x11,0xe0,0xe6]
18 @ CHECK: strbt r1, [r0], #4 @ encoding: [0x04,0x10,0xe0,0xe4]
19 @ CHECK: strbt r1, [r0], #0 @ encoding: [0x00,0x10,0xe0,0xe4]
20 ldrt r1, [r0], r2
21 ldrt r1, [r0], r2, lsr #3
22 ldrt r1, [r0], #4
23 ldrt r1, [r0]
24 ldrbt r1, [r0], r2
25 ldrbt r1, [r0], r2, lsr #3
26 ldrbt r1, [r0], #4
27 ldrbt r1, [r0]
28 strt r1, [r0], r2
29 strt r1, [r0], r2, lsr #3
30 strt r1, [r0], #4
31 strt r1, [r0]
32 strbt r1, [r0], r2
33 strbt r1, [r0], r2, lsr #3
34 strbt r1, [r0], #4
35 strbt r1, [r0]
37 @ Pre-indexed
38 @ CHECK: ldr r1, [r0, r2, lsr #3]! @ encoding: [0xa2,0x11,0xb0,0xe7]
39 @ CHECK: ldrb r1, [r0, r2, lsr #3]! @ encoding: [0xa2,0x11,0xf0,0xe7]
40 ldr r1, [r0, r2, lsr #3]!
41 ldrb r1, [r0, r2, lsr #3]!