1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/AArch64/armv8.7a-hcx.s
Lucas Prates 870ec0cc7f [ARM][AArch64] Adding basic support for the v8.7-A architecture
This introduces support for the v8.7-A architecture through a new
subtarget feature called "v8.7a". It adds two new "WFET" and "WFIT"
instructions, the nXS limited-TLB-maintenance qualifier for DSB and TLBI
instructions, a new CPU id register, ID_AA64ISAR2_EL1, and the new
HCRX_EL2 system register.

Based on patches written by Simon Tatham and Victor Campos.

Reviewed By: ostannard

Differential Revision: https://reviews.llvm.org/D91772
2020-12-17 13:45:08 +00:00

13 lines
665 B
ArmAsm

// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+hcx < %s 2>%t | FileCheck %s
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.7a < %s 2>%t | FileCheck %s
// RUN: not llvm-mc -triple aarch64-none-linux-gnu < %s 2> %t
// RUN: FileCheck --check-prefix=CHECK-NO-HCX-ERR %s < %t
mrs x2, HCRX_EL2
// CHECK: mrs x2, HCRX_EL2 // encoding: [0x42,0x12,0x3c,0xd5]
// CHECK-NO-HCX-ERR: [[@LINE-2]]:11: error: expected readable system register
msr HCRX_EL2, x3
// CHECK: msr HCRX_EL2, x3 // encoding: [0x43,0x12,0x1c,0xd5]
// CHECK-NO-HCX-ERR: [[@LINE-2]]:7: error: expected writable system register