# RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.1a --disassemble < %s | FileCheck %s
0x41,0x7c,0xa0,0x08
0x41,0x7c,0xe0,0x08
0x41,0xfc,0xa0,0x08
0x41,0xfc,0xe0,0x08
0x41,0x7c,0xa0,0x48
0x41,0x7c,0xe0,0x48
0x41,0xfc,0xa0,0x48
0x41,0xfc,0xe0,0x48
# CHECK: casb w0, w1, [x2]
# CHECK: casab w0, w1, [x2]
# CHECK: caslb w0, w1, [x2]
# CHECK: casalb w0, w1, [x2]
# CHECK: cash w0, w1, [x2]
# CHECK: casah w0, w1, [x2]
# CHECK: caslh w0, w1, [x2]
# CHECK: casalh w0, w1, [x2]
0x41,0x7c,0xa0,0x88
0x41,0x7c,0xe0,0x88
0x41,0xfc,0xa0,0x88
0x41,0xfc,0xe0,0x88
0x41,0x7c,0xa0,0xc8
0x41,0x7c,0xe0,0xc8
0x41,0xfc,0xa0,0xc8
0x41,0xfc,0xe0,0xc8
# CHECK: cas w0, w1, [x2]
# CHECK: casa w0, w1, [x2]
# CHECK: casl w0, w1, [x2]
# CHECK: casal w0, w1, [x2]
# CHECK: cas x0, x1, [x2]
# CHECK: casa x0, x1, [x2]
# CHECK: casl x0, x1, [x2]
# CHECK: casal x0, x1, [x2]
0x41,0x80,0x20,0xf8
0x41,0x80,0x20,0x38
0x41,0x80,0x60,0x78
0xe1,0x83,0xe0,0xf8
# CHECK: swp x0, x1, [x2]
# CHECK: swpb w0, w1, [x2]
# CHECK: swplh w0, w1, [x2]
# CHECK: swpal x0, x1, [sp]
0x41,0x00,0xa0,0xf8
0x41,0x10,0x60,0xf8
0x41,0x20,0xe0,0xf8
0x41,0x30,0x20,0xf8
0x41,0x40,0xa0,0xb8
0x41,0x50,0x60,0x38
0x41,0x60,0xe0,0x78
0x41,0x70,0x20,0xb8
0xab,0x51,0xe7,0x78
# CHECK: ldadda x0, x1, [x2]
# CHECK: ldclrl x0, x1, [x2]
# CHECK: ldeoral x0, x1, [x2]
# CHECK: ldset x0, x1, [x2]
# CHECK: ldsmaxa w0, w1, [x2]
# CHECK: ldsminlb w0, w1, [x2]
# CHECK: ldumaxalh w0, w1, [x2]
# CHECK: ldumin w0, w1, [x2]
# CHECK: ldsminalh w7, w11, [x13]
0x5f,0x00,0x60,0x38
0x5f,0x10,0x60,0x78
0x5f,0x20,0x60,0xb8
0x5f,0x30,0x60,0xf8
0x5f,0x40,0x20,0x38
0x5f,0x50,0x20,0x78
0x5f,0x60,0x20,0xb8
0x5f,0x70,0x20,0xf8
0xff,0x53,0x7d,0xf8
# CHECK: staddlb w0, [x2]
# CHECK: stclrlh w0, [x2]
# CHECK: steorl w0, [x2]
# CHECK: stsetl x0, [x2]
# CHECK: stsmaxb w0, [x2]
# CHECK: stsminh w0, [x2]
# CHECK: stumax w0, [x2]
# CHECK: stumin x0, [x2]
# CHECK: stsminl x29, [sp]
0x82,0x7c,0x20,0x48
0x82,0x7c,0x20,0x08
# CHECK: casp x0, x1, x2, x3, [x4]
# CHECK: casp w0, w1, w2, w3, [x4]