xref: /aosp_15_r20/external/llvm/test/MC/ARM/load-store-acquire-release-v8-thumb.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker@ RUN: llvm-mc -triple=thumbv8 -show-encoding < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker@ RUN: not llvm-mc -triple=thumbv7 -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-V7
3*9880d681SAndroid Build Coastguard Worker        ldaexb  r3, [r4]
4*9880d681SAndroid Build Coastguard Worker        ldaexh  r2, [r5]
5*9880d681SAndroid Build Coastguard Worker        ldaex  r1, [r7]
6*9880d681SAndroid Build Coastguard Worker        ldaexd  r6, r7, [r8]
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Worker@ CHECK:  ldaexb	r3, [r4]                @ encoding: [0xd4,0xe8,0xcf,0x3f]
9*9880d681SAndroid Build Coastguard Worker@ CHECK:  ldaexh	r2, [r5]                @ encoding: [0xd5,0xe8,0xdf,0x2f]
10*9880d681SAndroid Build Coastguard Worker@ CHECK:  ldaex	r1, [r7]                @ encoding: [0xd7,0xe8,0xef,0x1f]
11*9880d681SAndroid Build Coastguard Worker@ CHECK:  ldaexd	r6, r7, [r8]            @ encoding: [0xd8,0xe8,0xff,0x67]
12*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
13*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
14*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
15*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker        stlexb  r1, r3, [r4]
18*9880d681SAndroid Build Coastguard Worker        stlexh  r4, r2, [r5]
19*9880d681SAndroid Build Coastguard Worker        stlex  r2, r1, [r7]
20*9880d681SAndroid Build Coastguard Worker        stlexd  r6, r2, r3, [r8]
21*9880d681SAndroid Build Coastguard Worker@ CHECK: stlexb r1, r3, [r4]            @ encoding: [0xc4,0xe8,0xc1,0x3f]
22*9880d681SAndroid Build Coastguard Worker@ CHECK: stlexh r4, r2, [r5]            @ encoding: [0xc5,0xe8,0xd4,0x2f]
23*9880d681SAndroid Build Coastguard Worker@ CHECK: stlex r2, r1, [r7]            @ encoding: [0xc7,0xe8,0xe2,0x1f]
24*9880d681SAndroid Build Coastguard Worker@ CHECK: stlexd r6, r2, r3, [r8]        @ encoding: [0xc8,0xe8,0xf6,0x23]
25*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
26*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
27*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
28*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
29*9880d681SAndroid Build Coastguard Worker
30*9880d681SAndroid Build Coastguard Worker         lda r5, [r6]
31*9880d681SAndroid Build Coastguard Worker         ldab r5, [r6]
32*9880d681SAndroid Build Coastguard Worker         ldah r12, [r9]
33*9880d681SAndroid Build Coastguard Worker@ CHECK: lda r5, [r6]                   @ encoding: [0xd6,0xe8,0xaf,0x5f]
34*9880d681SAndroid Build Coastguard Worker@ CHECK: ldab r5, [r6]                  @ encoding: [0xd6,0xe8,0x8f,0x5f]
35*9880d681SAndroid Build Coastguard Worker@ CHECK: ldah r12, [r9]                 @ encoding: [0xd9,0xe8,0x9f,0xcf]
36*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
37*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
38*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
39*9880d681SAndroid Build Coastguard Worker
40*9880d681SAndroid Build Coastguard Worker         stl r3, [r0]
41*9880d681SAndroid Build Coastguard Worker         stlb r2, [r1]
42*9880d681SAndroid Build Coastguard Worker         stlh r2, [r3]
43*9880d681SAndroid Build Coastguard Worker@ CHECK: stl r3, [r0]                   @ encoding: [0xc0,0xe8,0xaf,0x3f]
44*9880d681SAndroid Build Coastguard Worker@ CHECK: stlb r2, [r1]                  @ encoding: [0xc1,0xe8,0x8f,0x2f]
45*9880d681SAndroid Build Coastguard Worker@ CHECK: stlh r2, [r3]                  @ encoding: [0xc3,0xe8,0x9f,0x2f]
46*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
47*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
48*9880d681SAndroid Build Coastguard Worker@ CHECK-V7: error: instruction requires: acquire/release
49