mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
3dd3d16f4d
Summary: The PMMIR_EL1 register is present in Armv8.4 with PMU extension. This patch adds support for it. Reviewers: t.p.northover, dnsampaio Reviewed By: dnsampaio Subscribers: kristof.beyls, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D68940 llvm-svn: 375228
20 lines
788 B
ArmAsm
20 lines
788 B
ArmAsm
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a < %s \
|
|
// RUN: | FileCheck %s --check-prefix=CHECK
|
|
|
|
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=-v8.4a < %s 2>&1 \
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
|
|
|
|
//------------------------------------------------------------------------------
|
|
// ARMV8.4-A PMU
|
|
//------------------------------------------------------------------------------
|
|
|
|
// Read/Write registers:
|
|
|
|
msr PMMIR_EL1, x0
|
|
mrs x0, PMMIR_EL1
|
|
|
|
//CHECK: msr PMMIR_EL1, x0 // encoding: [0xc0,0x9e,0x18,0xd5]
|
|
//CHECK: mrs x0, PMMIR_EL1 // encoding: [0xc0,0x9e,0x38,0xd5]
|
|
//CHECK-ERROR: error: expected writable system register or pstate
|
|
//CHECK-ERROR: error: expected readable system register
|