[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / AArch64 / armv8.4a-pmu.s
blobe77a33a7c0fd1cd69052bccadbc0e692e355d77d
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a < %s \
2 // RUN: | FileCheck %s --check-prefix=CHECK
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
7 //------------------------------------------------------------------------------
8 // ARMV8.4-A PMU
9 //------------------------------------------------------------------------------
11 // Read/Write registers:
13 msr PMMIR_EL1, x0
14 mrs x0, PMMIR_EL1
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