forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Add support for Armv9.6-A FEAT_MPAM system registers (llvm#…
…111822) Add support for Armv9.6-A FEAT_MPAM system registers as documented here: https://developer.arm.com/documentation/ddi0601/2024-09/AArch64-Registers
- Loading branch information
Showing
3 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding < %s 2> %t | FileCheck %s --check-prefix=CHECK | ||
// RUN: FileCheck --check-prefix=CHECK-RO < %t %s | ||
|
||
//------------------------------------------------------------------------------ | ||
// Armv9.6-A FEAT_MPAM Extensions | ||
//------------------------------------------------------------------------------ | ||
|
||
msr MPAMBWIDR_EL1, x0 | ||
msr MPAMBW3_EL3, x0 | ||
msr MPAMBW2_EL2, x0 | ||
msr MPAMBW1_EL1, x0 | ||
msr MPAMBW1_EL12, x0 | ||
msr MPAMBW0_EL1, x0 | ||
msr MPAMBWCAP_EL2, x0 | ||
msr MPAMBWSM_EL1, x0 | ||
|
||
mrs x0, MPAMBWIDR_EL1 | ||
mrs x0, MPAMBW3_EL3 | ||
mrs x0, MPAMBW2_EL2 | ||
mrs x0, MPAMBW1_EL1 | ||
mrs x0, MPAMBW1_EL12 | ||
mrs x0, MPAMBW0_EL1 | ||
mrs x0, MPAMBWCAP_EL2 | ||
mrs x0, MPAMBWSM_EL1 | ||
|
||
//CHECK: msr MPAMBW3_EL3, x0 // encoding: [0x80,0xa5,0x1e,0xd5] | ||
//CHECK: msr MPAMBW2_EL2, x0 // encoding: [0x80,0xa5,0x1c,0xd5] | ||
//CHECK: msr MPAMBW1_EL1, x0 // encoding: [0x80,0xa5,0x18,0xd5] | ||
//CHECK: msr MPAMBW1_EL12, x0 // encoding: [0x80,0xa5,0x1d,0xd5] | ||
//CHECK: msr MPAMBW0_EL1, x0 // encoding: [0xa0,0xa5,0x18,0xd5] | ||
//CHECK: msr MPAMBWCAP_EL2, x0 // encoding: [0xc0,0xa5,0x1c,0xd5] | ||
//CHECK: msr MPAMBWSM_EL1, x0 // encoding: [0xe0,0xa5,0x18,0xd5] | ||
|
||
//CHECK-RO: error: expected writable system register or pstate | ||
//CHECK-RO: msr MPAMBWIDR_EL1, x0 | ||
//CHECK-RO: ^ | ||
|
||
//CHECK: mrs x0, MPAMBWIDR_EL1 // encoding: [0xa0,0xa4,0x38,0xd5] | ||
//CHECK: mrs x0, MPAMBW3_EL3 // encoding: [0x80,0xa5,0x3e,0xd5] | ||
//CHECK: mrs x0, MPAMBW2_EL2 // encoding: [0x80,0xa5,0x3c,0xd5] | ||
//CHECK: mrs x0, MPAMBW1_EL1 // encoding: [0x80,0xa5,0x38,0xd5] | ||
//CHECK: mrs x0, MPAMBW1_EL12 // encoding: [0x80,0xa5,0x3d,0xd5] | ||
//CHECK: mrs x0, MPAMBW0_EL1 // encoding: [0xa0,0xa5,0x38,0xd5] | ||
//CHECK: mrs x0, MPAMBWCAP_EL2 // encoding: [0xc0,0xa5,0x3c,0xd5] | ||
//CHECK: mrs x0, MPAMBWSM_EL1 // encoding: [0xe0,0xa5,0x38,0xd5] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# RUN: llvm-mc -triple aarch64 -disassemble < %s | FileCheck %s | ||
|
||
#------------------------------------------------------------------------------ | ||
# Armv9.6-A FEAT_MPAM Extensions | ||
#------------------------------------------------------------------------------ | ||
|
||
[0x80,0xa5,0x1e,0xd5] | ||
# CHECK: msr MPAMBW3_EL3, x0 | ||
|
||
[0x80,0xa5,0x1c,0xd5] | ||
# CHECK: msr MPAMBW2_EL2, x0 | ||
|
||
[0x80,0xa5,0x18,0xd5] | ||
# CHECK: msr MPAMBW1_EL1, x0 | ||
|
||
[0x80,0xa5,0x1d,0xd5] | ||
# CHECK: msr MPAMBW1_EL12, x0 | ||
|
||
[0xa0,0xa5,0x18,0xd5] | ||
# CHECK: msr MPAMBW0_EL1, x0 | ||
|
||
[0xc0,0xa5,0x1c,0xd5] | ||
# CHECK: msr MPAMBWCAP_EL2, x0 | ||
|
||
[0xe0,0xa5,0x18,0xd5] | ||
# CHECK: msr MPAMBWSM_EL1, x0 | ||
|
||
[0xa0,0xa4,0x38,0xd5] | ||
# CHECK: mrs x0, MPAMBWIDR_EL1 | ||
|
||
[0x80,0xa5,0x3e,0xd5] | ||
# CHECK: mrs x0, MPAMBW3_EL3 | ||
|
||
[0x80,0xa5,0x3c,0xd5] | ||
# CHECK: mrs x0, MPAMBW2_EL2 | ||
|
||
[0x80,0xa5,0x38,0xd5] | ||
# CHECK: mrs x0, MPAMBW1_EL1 | ||
|
||
[0x80,0xa5,0x3d,0xd5] | ||
# CHECK: mrs x0, MPAMBW1_EL12 | ||
|
||
[0xa0,0xa5,0x38,0xd5] | ||
# CHECK: mrs x0, MPAMBW0_EL1 | ||
|
||
[0xc0,0xa5,0x3c,0xd5] | ||
# CHECK: mrs x0, MPAMBWCAP_EL2 | ||
|
||
[0xe0,0xa5,0x38,0xd5] | ||
# CHECK: mrs x0, MPAMBWSM_EL1 |