• 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-a75 < %s 2>&1 | FileCheck %s
3// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a55 < %s 2>&1 | FileCheck %s
4// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.2a -mattr=+rcpc < %s 2>&1 | FileCheck %s
5// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.2a < %s 2> %t
6// RUN: FileCheck --check-prefix=CHECK-REQ %s < %t
7
8  ldaprb w0, [x0, #0]
9  ldaprh w0, [x17, #0]
10  ldapr w0, [x1, #0]
11  ldapr x0, [x0, #0]
12  ldapr w18, [x0]
13  ldapr x15, [x0]
14
15// CHECK: ldaprb w0, [x0]    // encoding: [0x00,0xc0,0xbf,0x38]
16// CHECK: ldaprh w0, [x17]   // encoding: [0x20,0xc2,0xbf,0x78]
17// CHECK: ldapr w0, [x1]     // encoding: [0x20,0xc0,0xbf,0xb8]
18// CHECK: ldapr x0, [x0]     // encoding: [0x00,0xc0,0xbf,0xf8]
19// CHECK: ldapr w18, [x0]    // encoding: [0x12,0xc0,0xbf,0xb8]
20// CHECK: ldapr x15, [x0]    // encoding: [0x0f,0xc0,0xbf,0xf8]
21// CHECK-REQ: error: instruction requires: rcpc
22// CHECK-REQ: error: instruction requires: rcpc
23// CHECK-REQ: error: instruction requires: rcpc
24// CHECK-REQ: error: instruction requires: rcpc
25// CHECK-REQ: error: instruction requires: rcpc
26// CHECK-REQ: error: instruction requires: rcpc
27