[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / armv8.3a-rcpc.s
blobf38161ee21e8595b1917573674237646b0b45dbf
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.3a < %s 2>&1 | FileCheck %s
2 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a65 < %s 2>&1 | FileCheck %s
3 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a65ae < %s 2>&1 | FileCheck %s
4 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a75 < %s 2>&1 | FileCheck %s
5 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a55 < %s 2>&1 | FileCheck %s
6 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=neoverse-e1 < %s 2>&1 | FileCheck %s
7 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=neoverse-n1 < %s 2>&1 | FileCheck %s
8 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.2a -mattr=+rcpc < %s 2>&1 | FileCheck %s
9 // RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.2a < %s 2> %t
10 // RUN: FileCheck --check-prefix=CHECK-REQ %s < %t
12 ldaprb w0, [x0, #0]
13 ldaprh w0, [x17, #0]
14 ldapr w0, [x1, #0]
15 ldapr x0, [x0, #0]
16 ldapr w18, [x0]
17 ldapr x15, [x0]
19 // CHECK: ldaprb w0, [x0] // encoding: [0x00,0xc0,0xbf,0x38]
20 // CHECK: ldaprh w0, [x17] // encoding: [0x20,0xc2,0xbf,0x78]
21 // CHECK: ldapr w0, [x1] // encoding: [0x20,0xc0,0xbf,0xb8]
22 // CHECK: ldapr x0, [x0] // encoding: [0x00,0xc0,0xbf,0xf8]
23 // CHECK: ldapr w18, [x0] // encoding: [0x12,0xc0,0xbf,0xb8]
24 // CHECK: ldapr x15, [x0] // encoding: [0x0f,0xc0,0xbf,0xf8]
25 // CHECK-REQ: error: instruction requires: rcpc
26 // CHECK-REQ: error: instruction requires: rcpc
27 // CHECK-REQ: error: instruction requires: rcpc
28 // CHECK-REQ: error: instruction requires: rcpc
29 // CHECK-REQ: error: instruction requires: rcpc
30 // CHECK-REQ: error: instruction requires: rcpc