-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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_SPE_EXC and FEAT_TRBE_EXC (#…
…113463) Add support for the following Armv9.6-A architecture extensions: * FEAT_SPE_EXC - Statistical Profiling Extension profiling exceptions * FEAT_TRBE_EXC - Trace Buffer Management Events profiling exceptions as documented here: https://developer.arm.com/documentation/109697/2024_09/Feature-descriptions/The-Armv9-6-architecture-extension Co-authored-by: Jonathan Thackray <jonathan.thackray@arm.com>
- Loading branch information
1 parent
564fd62
commit 99a52f9
Showing
5 changed files
with
77 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,19 @@ | ||
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding < %s 2> %t | FileCheck %s | ||
|
||
msr pmbmar_el1, x0 | ||
msr pmbsr_el12, x0 | ||
msr pmbsr_el2, x0 | ||
msr pmbsr_el3, x0 | ||
// CHECK: msr PMBMAR_EL1, x0 // encoding: [0xa0,0x9a,0x18,0xd5] | ||
// CHECK: msr PMBSR_EL12, x0 // encoding: [0x60,0x9a,0x1d,0xd5] | ||
// CHECK: msr PMBSR_EL2, x0 // encoding: [0x60,0x9a,0x1c,0xd5] | ||
// CHECK: msr PMBSR_EL3, x0 // encoding: [0x60,0x9a,0x1e,0xd5] | ||
|
||
mrs x0, pmbmar_el1 | ||
mrs x0, pmbsr_el12 | ||
mrs x0, pmbsr_el2 | ||
mrs x0, pmbsr_el3 | ||
// CHECK: mrs x0, PMBMAR_EL1 // encoding: [0xa0,0x9a,0x38,0xd5] | ||
// CHECK: mrs x0, PMBSR_EL12 // encoding: [0x60,0x9a,0x3d,0xd5] | ||
// CHECK: mrs x0, PMBSR_EL2 // encoding: [0x60,0x9a,0x3c,0xd5] | ||
// CHECK: mrs x0, PMBSR_EL3 // encoding: [0x60,0x9a,0x3e,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,15 @@ | ||
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding < %s 2> %t | FileCheck %s | ||
|
||
msr trbsr_el12, x0 | ||
msr trbsr_el2, x0 | ||
msr trbsr_el3, x0 | ||
// CHECK: msr TRBSR_EL12, x0 // encoding: [0x60,0x9b,0x1d,0xd5] | ||
// CHECK: msr TRBSR_EL2, x0 // encoding: [0x60,0x9b,0x1c,0xd5] | ||
// CHECK: msr TRBSR_EL3, x0 // encoding: [0x60,0x9b,0x1e,0xd5] | ||
|
||
mrs x0, trbsr_el12 | ||
mrs x0, trbsr_el2 | ||
mrs x0, trbsr_el3 | ||
// CHECK: mrs x0, TRBSR_EL12 // encoding: [0x60,0x9b,0x3d,0xd5] | ||
// CHECK: mrs x0, TRBSR_EL2 // encoding: [0x60,0x9b,0x3c,0xd5] | ||
// CHECK: mrs x0, TRBSR_EL3 // encoding: [0x60,0x9b,0x3e,0xd5] |
15 changes: 15 additions & 0 deletions
15
llvm/test/MC/Disassembler/AArch64/armv9.6a-statistical-profiling.txt
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,15 @@ | ||
# RUN: llvm-mc -triple aarch64 -disassemble < %s | FileCheck %s | ||
|
||
[0x60,0x9a,0x1d,0xd5] | ||
# CHECK: msr PMBSR_EL12, x0 | ||
[0x60,0x9a,0x1c,0xd5] | ||
# CHECK: msr PMBSR_EL2, x0 | ||
[0x60,0x9a,0x1e,0xd5] | ||
# CHECK: msr PMBSR_EL3, x0 | ||
|
||
[0x60,0x9a,0x3d,0xd5] | ||
# CHECK: mrs x0, PMBSR_EL12 | ||
[0x60,0x9a,0x3c,0xd5] | ||
# CHECK: mrs x0, PMBSR_EL2 | ||
[0x60,0x9a,0x3e,0xd5] | ||
# CHECK: mrs x0, PMBSR_EL3 |
15 changes: 15 additions & 0 deletions
15
llvm/test/MC/Disassembler/AArch64/armv9.6a-trbe-exception.txt
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,15 @@ | ||
# RUN: llvm-mc -triple aarch64 -disassemble < %s | FileCheck %s | ||
|
||
[0x60,0x9b,0x1d,0xd5] | ||
# CHECK: msr TRBSR_EL12, x0 | ||
[0x60,0x9b,0x1c,0xd5] | ||
# CHECK: msr TRBSR_EL2, x0 | ||
[0x60,0x9b,0x1e,0xd5] | ||
# CHECK: msr TRBSR_EL3, x0 | ||
|
||
[0x60,0x9b,0x3d,0xd5] | ||
# CHECK: mrs x0, TRBSR_EL12 | ||
[0x60,0x9b,0x3c,0xd5] | ||
# CHECK: mrs x0, TRBSR_EL2 | ||
[0x60,0x9b,0x3e,0xd5] | ||
# CHECK: mrs x0, TRBSR_EL3 |