Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / armv8.3a-rcpc.s
blobb4adcb32e6e7cd9cd441f0adef80b73169753681
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 -mcpu=neoverse-n2 < %s 2>&1 | FileCheck %s
9 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=ampere1 < %s 2>&1 | FileCheck %s
10 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=ampere1a < %s 2>&1 | FileCheck %s
11 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.2a -mattr=+rcpc < %s 2>&1 | FileCheck %s
12 // RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.2a < %s 2> %t
13 // RUN: FileCheck --check-prefix=CHECK-REQ %s < %t
15 ldaprb w0, [x0, #0]
16 ldaprh w0, [x17, #0]
17 ldapr w0, [x1, #0]
18 ldapr x0, [x0, #0]
19 ldapr w18, [x0]
20 ldapr x15, [x0]
22 // CHECK: ldaprb w0, [x0] // encoding: [0x00,0xc0,0xbf,0x38]
23 // CHECK: ldaprh w0, [x17] // encoding: [0x20,0xc2,0xbf,0x78]
24 // CHECK: ldapr w0, [x1] // encoding: [0x20,0xc0,0xbf,0xb8]
25 // CHECK: ldapr x0, [x0] // encoding: [0x00,0xc0,0xbf,0xf8]
26 // CHECK: ldapr w18, [x0] // encoding: [0x12,0xc0,0xbf,0xb8]
27 // CHECK: ldapr x15, [x0] // encoding: [0x0f,0xc0,0xbf,0xf8]
28 // CHECK-REQ: error: instruction requires: rcpc
29 // CHECK-REQ: error: instruction requires: rcpc
30 // CHECK-REQ: error: instruction requires: rcpc
31 // CHECK-REQ: error: instruction requires: rcpc
32 // CHECK-REQ: error: instruction requires: rcpc
33 // CHECK-REQ: error: instruction requires: rcpc