1// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a < %s \
2// RUN: | FileCheck %s --check-prefix=CHECK
3
4// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=-v8.4a < %s 2>&1 \
5// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
6
7//------------------------------------------------------------------------------
8// ARMV8.4-A PMU
9//------------------------------------------------------------------------------
10
11// Read/Write registers:
12
13msr PMMIR_EL1, x0
14mrs x0, PMMIR_EL1
15
16//CHECK: msr     PMMIR_EL1, x0           // encoding: [0xc0,0x9e,0x18,0xd5]
17//CHECK: mrs     x0, PMMIR_EL1           // encoding: [0xc0,0x9e,0x38,0xd5]
18//CHECK-ERROR: error: expected writable system register or pstate
19//CHECK-ERROR: error: expected readable system register
20