xref: /aosp_15_r20/external/llvm/test/MC/Disassembler/AArch64/armv8.1a-atomic.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.1a --disassemble < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xa0,0x08
4*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xe0,0x08
5*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xa0,0x08
6*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xe0,0x08
7*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xa0,0x48
8*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xe0,0x48
9*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xa0,0x48
10*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xe0,0x48
11*9880d681SAndroid Build Coastguard Worker# CHECK:  casb   w0, w1, [x2]
12*9880d681SAndroid Build Coastguard Worker# CHECK:  casab  w0, w1, [x2]
13*9880d681SAndroid Build Coastguard Worker# CHECK:  caslb   w0, w1, [x2]
14*9880d681SAndroid Build Coastguard Worker# CHECK:  casalb   w0, w1, [x2]
15*9880d681SAndroid Build Coastguard Worker# CHECK:  cash   w0, w1, [x2]
16*9880d681SAndroid Build Coastguard Worker# CHECK:  casah  w0, w1, [x2]
17*9880d681SAndroid Build Coastguard Worker# CHECK:  caslh   w0, w1, [x2]
18*9880d681SAndroid Build Coastguard Worker# CHECK:  casalh   w0, w1, [x2]
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xa0,0x88
21*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xe0,0x88
22*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xa0,0x88
23*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xe0,0x88
24*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xa0,0xc8
25*9880d681SAndroid Build Coastguard Worker0x41,0x7c,0xe0,0xc8
26*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xa0,0xc8
27*9880d681SAndroid Build Coastguard Worker0x41,0xfc,0xe0,0xc8
28*9880d681SAndroid Build Coastguard Worker# CHECK:  cas   w0, w1, [x2]
29*9880d681SAndroid Build Coastguard Worker# CHECK:  casa  w0, w1, [x2]
30*9880d681SAndroid Build Coastguard Worker# CHECK:  casl   w0, w1, [x2]
31*9880d681SAndroid Build Coastguard Worker# CHECK:  casal   w0, w1, [x2]
32*9880d681SAndroid Build Coastguard Worker# CHECK:  cas   x0, x1, [x2]
33*9880d681SAndroid Build Coastguard Worker# CHECK:  casa  x0, x1, [x2]
34*9880d681SAndroid Build Coastguard Worker# CHECK:  casl   x0, x1, [x2]
35*9880d681SAndroid Build Coastguard Worker# CHECK:  casal   x0, x1, [x2]
36*9880d681SAndroid Build Coastguard Worker
37*9880d681SAndroid Build Coastguard Worker0x41,0x80,0x20,0xf8
38*9880d681SAndroid Build Coastguard Worker0x41,0x80,0x20,0x38
39*9880d681SAndroid Build Coastguard Worker0x41,0x80,0x60,0x78
40*9880d681SAndroid Build Coastguard Worker0xe1,0x83,0xe0,0xf8
41*9880d681SAndroid Build Coastguard Worker# CHECK: swp   x0, x1, [x2]
42*9880d681SAndroid Build Coastguard Worker# CHECK: swpb  w0, w1, [x2]
43*9880d681SAndroid Build Coastguard Worker# CHECK: swplh w0, w1, [x2]
44*9880d681SAndroid Build Coastguard Worker# CHECK: swpal x0, x1, [sp]
45*9880d681SAndroid Build Coastguard Worker
46*9880d681SAndroid Build Coastguard Worker0x41,0x00,0xa0,0xf8
47*9880d681SAndroid Build Coastguard Worker0x41,0x10,0x60,0xf8
48*9880d681SAndroid Build Coastguard Worker0x41,0x20,0xe0,0xf8
49*9880d681SAndroid Build Coastguard Worker0x41,0x30,0x20,0xf8
50*9880d681SAndroid Build Coastguard Worker0x41,0x40,0xa0,0xb8
51*9880d681SAndroid Build Coastguard Worker0x41,0x50,0x60,0x38
52*9880d681SAndroid Build Coastguard Worker0x41,0x60,0xe0,0x78
53*9880d681SAndroid Build Coastguard Worker0x41,0x70,0x20,0xb8
54*9880d681SAndroid Build Coastguard Worker0xab,0x51,0xe7,0x78
55*9880d681SAndroid Build Coastguard Worker# CHECK:  ldadda    x0, x1, [x2]
56*9880d681SAndroid Build Coastguard Worker# CHECK:  ldclrl    x0, x1, [x2]
57*9880d681SAndroid Build Coastguard Worker# CHECK:  ldeoral   x0, x1, [x2]
58*9880d681SAndroid Build Coastguard Worker# CHECK:  ldset     x0, x1, [x2]
59*9880d681SAndroid Build Coastguard Worker# CHECK:  ldsmaxa   w0, w1, [x2]
60*9880d681SAndroid Build Coastguard Worker# CHECK:  ldsminlb  w0, w1, [x2]
61*9880d681SAndroid Build Coastguard Worker# CHECK:  ldumaxalh w0, w1, [x2]
62*9880d681SAndroid Build Coastguard Worker# CHECK:  ldumin    w0, w1, [x2]
63*9880d681SAndroid Build Coastguard Worker# CHECK:  ldsminalh w7, w11, [x13]
64*9880d681SAndroid Build Coastguard Worker
65*9880d681SAndroid Build Coastguard Worker0x5f,0x00,0x60,0x38
66*9880d681SAndroid Build Coastguard Worker0x5f,0x10,0x60,0x78
67*9880d681SAndroid Build Coastguard Worker0x5f,0x20,0x60,0xb8
68*9880d681SAndroid Build Coastguard Worker0x5f,0x30,0x60,0xf8
69*9880d681SAndroid Build Coastguard Worker0x5f,0x40,0x20,0x38
70*9880d681SAndroid Build Coastguard Worker0x5f,0x50,0x20,0x78
71*9880d681SAndroid Build Coastguard Worker0x5f,0x60,0x20,0xb8
72*9880d681SAndroid Build Coastguard Worker0x5f,0x70,0x20,0xf8
73*9880d681SAndroid Build Coastguard Worker0xff,0x53,0x7d,0xf8
74*9880d681SAndroid Build Coastguard Worker# CHECK: staddlb    w0, [x2]
75*9880d681SAndroid Build Coastguard Worker# CHECK: stclrlh    w0, [x2]
76*9880d681SAndroid Build Coastguard Worker# CHECK: steorl     w0, [x2]
77*9880d681SAndroid Build Coastguard Worker# CHECK: stsetl     x0, [x2]
78*9880d681SAndroid Build Coastguard Worker# CHECK: stsmaxb     w0, [x2]
79*9880d681SAndroid Build Coastguard Worker# CHECK: stsminh     w0, [x2]
80*9880d681SAndroid Build Coastguard Worker# CHECK: stumax      w0, [x2]
81*9880d681SAndroid Build Coastguard Worker# CHECK: stumin      x0, [x2]
82*9880d681SAndroid Build Coastguard Worker# CHECK: stsminl     x29, [sp]
83*9880d681SAndroid Build Coastguard Worker
84*9880d681SAndroid Build Coastguard Worker0x82,0x7c,0x20,0x48
85*9880d681SAndroid Build Coastguard Worker0x82,0x7c,0x20,0x08
86*9880d681SAndroid Build Coastguard Worker# CHECK: casp x0, x1, x2, x3, [x4]
87*9880d681SAndroid Build Coastguard Worker# CHECK: casp w0, w1, w2, w3, [x4]
88