• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 -mattr=+v8.2a -mattr=+rcpc < %s 2>&1 | FileCheck %s
10// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.2a < %s 2> %t
11// RUN: FileCheck --check-prefix=CHECK-REQ %s < %t
12
13  ldaprb w0, [x0, #0]
14  ldaprh w0, [x17, #0]
15  ldapr w0, [x1, #0]
16  ldapr x0, [x0, #0]
17  ldapr w18, [x0]
18  ldapr x15, [x0]
19
20// CHECK: ldaprb w0, [x0]    // encoding: [0x00,0xc0,0xbf,0x38]
21// CHECK: ldaprh w0, [x17]   // encoding: [0x20,0xc2,0xbf,0x78]
22// CHECK: ldapr w0, [x1]     // encoding: [0x20,0xc0,0xbf,0xb8]
23// CHECK: ldapr x0, [x0]     // encoding: [0x00,0xc0,0xbf,0xf8]
24// CHECK: ldapr w18, [x0]    // encoding: [0x12,0xc0,0xbf,0xb8]
25// CHECK: ldapr x15, [x0]    // encoding: [0x0f,0xc0,0xbf,0xf8]
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
31// CHECK-REQ: error: instruction requires: rcpc
32