[lldb][AArch64] Add register fields for the fpmr register (#109934)

The FP8 formats have a "_" in the name so that they are:
1. Easier to read.
2. Possible to use in register expressions if/when they are supported.

Some other bits do have defined meanings but they are not simple to
name. Better that folks read the manual for those.

See this page for the full details:

https://developer.arm.com/documentation/ddi0601/2024-06/AArch64-Registers/FPMR--Floating-point-Mode-Register
This commit is contained in:
David Spickett
2024-09-26 11:44:01 +01:00
committed by GitHub
parent 21ac5c8661
commit 0e24611f57
3 changed files with 32 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ class AArch64LinuxFPMR(TestBase):
substrs=["Floating Point Mode Register", f"fpmr = {expected_fpmr:#018x}"],
)
if self.hasXMLSupport():
self.expect(
"register read fpmr", substrs=["LSCALE2 = 42", "F8S1 = FP8_E4M3 | 0x4"]
)
# Write a value for the program to find. Same fields but with bit values
# inverted.
new_fpmr = (0b010101 << 32) | 0b010