[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / ldrd-strd-gnu-thumb.s
blob2536c1ef2f9a08ce3d102549680f845b703da524
1 @ PR18921
2 @ RUN: llvm-mc -triple=armv7-linux-gnueabi -show-encoding < %s | FileCheck %s
3 .text
4 .thumb
6 @ CHECK: .code 16
8 @ CHECK: ldrd r0, r1, [r10, #512]! @ encoding: [0xfa,0xe9,0x80,0x01]
9 @ CHECK: ldrd r0, r1, [r10], #512 @ encoding: [0xfa,0xe8,0x80,0x01]
10 @ CHECK: ldrd r0, r1, [r10, #512] @ encoding: [0xda,0xe9,0x80,0x01]
11 ldrd r0, [r10, #512]!
12 ldrd r0, [r10], #512
13 ldrd r0, [r10, #512]
15 @ CHECK: strd r0, r1, [r10, #512]! @ encoding: [0xea,0xe9,0x80,0x01]
16 @ CHECK: strd r0, r1, [r10], #512 @ encoding: [0xea,0xe8,0x80,0x01]
17 @ CHECK: strd r0, r1, [r10, #512] @ encoding: [0xca,0xe9,0x80,0x01]
18 strd r0, [r10, #512]!
19 strd r0, [r10], #512
20 strd r0, [r10, #512]
22 @ Rt is allowed to be odd for Thumb (but not ARM)
23 @ CHECK: ldrd r1, r2, [r10, #512]! @ encoding: [0xfa,0xe9,0x80,0x12]
24 @ CHECK: ldrd r1, r2, [r10], #512 @ encoding: [0xfa,0xe8,0x80,0x12]
25 @ CHECK: ldrd r1, r2, [r10, #512] @ encoding: [0xda,0xe9,0x80,0x12]
26 ldrd r1, [r10, #512]!
27 ldrd r1, [r10], #512
28 ldrd r1, [r10, #512]
30 @ CHECK: strd r1, r2, [r10, #512]! @ encoding: [0xea,0xe9,0x80,0x12]
31 @ CHECK: strd r1, r2, [r10], #512 @ encoding: [0xea,0xe8,0x80,0x12]
32 @ CHECK: strd r1, r2, [r10, #512] @ encoding: [0xca,0xe9,0x80,0x12]
33 strd r1, [r10, #512]!
34 strd r1, [r10], #512
35 strd r1, [r10, #512]