capstone/suite/MC/AArch64/armv8.4a-actmon.s.cs
Rot127 9c5b48b57f
AArch64 update to LLVM 18 (#2298)
* Run clang-format

* Remove arm.h header from AArch64 files

* Update all AArch64 module files to LLVM-18.

* Add check if the differs save file is up-to-date with the current files.

* Add new generator for MC test trnaslation.

* Fix warnings

* Update generated AsmWriter files

* Remove unused variable

* Change MCPhysReg type to int16_t as LLVM 18 dictates.

With LLVM 18 the MCPhysReg value's type is changed to int16_t.
If we update modules to LLVM 18, they will generate
compiler warnings that uint16_t* should not be casted to int16_t*.

This makes changing the all tables to int16_t necessary, because the alternative is
to duplicate all MCPhysReg related code. Which is even worse.

* Assign enum values to raw_struct member

* Add printAdrAdrpLabel def

* Add header to regression test files.

* Write files to build dir and ignore more parsing errors.

* Fix parsing of MC test files.

* Reset parser after every block

* Add write and patch header step.

* Add and update MC tests for AArch64

* Fix clang-tidy warnings

* Don't warn about padding issues.

They break automatically initialized structs we can not change easily.

* Fix: Incorrect access of LLVM instruction descriptions.

* Initialize DecoderComplete flag

* Add more mapping and flag details

* Add function to get MCInstDesc from table

* Fix incorrect memory operand access types.

* Fix test where memory was not written, ut only read.

* Attempt to fix Windows build

* Fix 2268

The enum values were different and hence lead to different decoding.

* Refactor SME operands.

- Splits SME operands in Matrix and Predicate operands.
- Fixes general problems of incorrect detections with
the vector select/index operands of predicate registers.
- Simplifies code.

* Fix up typo in WRITE

* Print actual path to struct fields

* Add Registers of SME operands to the reg-read list

* Add tests for SME operands.

* Use Capstone reg enum for comparison

* Fix tests: 'Vector arra...' to 'operands[x].vas'

* Add the developer fuzz option.

* Fix Python bindings for SME operands

* Fix variable shadowing.

* Fix clang-tidy warnings

* Add missing break.

* Fix varg usage

* Brackets for case

* Handle AArch64_OP_GROUP_AdrAdrpLabel

* Fix endian issue with fuzzing start bytes

* Move previous sme.pred to it's own operand type.

* Fix calculation for imm ranges

* Print list member flag

* Fix up operand strings for cstest

* Do only a shallow clone of the cmocka stable branch

* Fix: Don't categorize ZT0 as a SME matrix operand.

* Remove unused code.

* Add flag to distinguish Vn and Qn registers.

* Add all registers to detail struct, even if emitted in the asm text

* Fix: Increment op count after each list member is added.

* Remove implicit write to NZCV for MSR Imm instructions.

* Handle several alias operands.

* Add details for zero alias with za0.h

* Add SME tile to write list if written

* Add write access flags to operands which are zeroed.

* Add SME tests of #2285

* Fix tests with latest syntax changes.

* Fix segfault if memory operand is only a label without register.

* Fix python bindings

* Attempt to fix clang-tidy warning for some configurations.

* Add missing test file (accidentially blocked by gitignore.)

* Print clang-tidy version before linting.

* Update differ save file

* Formatting

* Use clang-tidy-15 as if possible.

* Remove search patterns for MC tests, since they need to be reworked anyways.

* Enum to upper case change

* Add information to read the OSS fuzz result.

* Fix special case of SVE2 operands.

Apparently ZT0 registers can an index attached,
get which is BOUND to it. We have no "index for reg" field.
So it is simply saved as an immediate.

* Handle LLVM expressions without asserts.

* Ensure choices are always saved.

* OP_GROUP enums can't be all upper case because they contain type information.

* Fix compatibility header patching

* Update saved_choices.json

* Allow mode == None in test_corpus
2024-07-08 10:28:54 +08:00

93 lines
4.1 KiB
C#

# CS_ARCH_AARCH64, 0, None
0x00,0xd2,0x1b,0xd5 == msr AMCR_EL0, x0
0x60,0xd2,0x1b,0xd5 == msr AMUSERENR_EL0, x0
0x80,0xd2,0x1b,0xd5 == msr AMCNTENCLR0_EL0, x0
0xa0,0xd2,0x1b,0xd5 == msr AMCNTENSET0_EL0, x0
0x00,0xd4,0x1b,0xd5 == msr AMEVCNTR00_EL0, x0
0x20,0xd4,0x1b,0xd5 == msr AMEVCNTR01_EL0, x0
0x40,0xd4,0x1b,0xd5 == msr AMEVCNTR02_EL0, x0
0x60,0xd4,0x1b,0xd5 == msr AMEVCNTR03_EL0, x0
0x00,0xd3,0x1b,0xd5 == msr AMCNTENCLR1_EL0, x0
0x20,0xd3,0x1b,0xd5 == msr AMCNTENSET1_EL0, x0
0x00,0xdc,0x1b,0xd5 == msr AMEVCNTR10_EL0, x0
0x20,0xdc,0x1b,0xd5 == msr AMEVCNTR11_EL0, x0
0x40,0xdc,0x1b,0xd5 == msr AMEVCNTR12_EL0, x0
0x60,0xdc,0x1b,0xd5 == msr AMEVCNTR13_EL0, x0
0x80,0xdc,0x1b,0xd5 == msr AMEVCNTR14_EL0, x0
0xa0,0xdc,0x1b,0xd5 == msr AMEVCNTR15_EL0, x0
0xc0,0xdc,0x1b,0xd5 == msr AMEVCNTR16_EL0, x0
0xe0,0xdc,0x1b,0xd5 == msr AMEVCNTR17_EL0, x0
0x00,0xdd,0x1b,0xd5 == msr AMEVCNTR18_EL0, x0
0x20,0xdd,0x1b,0xd5 == msr AMEVCNTR19_EL0, x0
0x40,0xdd,0x1b,0xd5 == msr AMEVCNTR110_EL0, x0
0x60,0xdd,0x1b,0xd5 == msr AMEVCNTR111_EL0, x0
0x80,0xdd,0x1b,0xd5 == msr AMEVCNTR112_EL0, x0
0xa0,0xdd,0x1b,0xd5 == msr AMEVCNTR113_EL0, x0
0xc0,0xdd,0x1b,0xd5 == msr AMEVCNTR114_EL0, x0
0xe0,0xdd,0x1b,0xd5 == msr AMEVCNTR115_EL0, x0
0x00,0xde,0x1b,0xd5 == msr AMEVTYPER10_EL0, x0
0x20,0xde,0x1b,0xd5 == msr AMEVTYPER11_EL0, x0
0x40,0xde,0x1b,0xd5 == msr AMEVTYPER12_EL0, x0
0x60,0xde,0x1b,0xd5 == msr AMEVTYPER13_EL0, x0
0x80,0xde,0x1b,0xd5 == msr AMEVTYPER14_EL0, x0
0xa0,0xde,0x1b,0xd5 == msr AMEVTYPER15_EL0, x0
0xc0,0xde,0x1b,0xd5 == msr AMEVTYPER16_EL0, x0
0xe0,0xde,0x1b,0xd5 == msr AMEVTYPER17_EL0, x0
0x00,0xdf,0x1b,0xd5 == msr AMEVTYPER18_EL0, x0
0x20,0xdf,0x1b,0xd5 == msr AMEVTYPER19_EL0, x0
0x40,0xdf,0x1b,0xd5 == msr AMEVTYPER110_EL0, x0
0x60,0xdf,0x1b,0xd5 == msr AMEVTYPER111_EL0, x0
0x80,0xdf,0x1b,0xd5 == msr AMEVTYPER112_EL0, x0
0xa0,0xdf,0x1b,0xd5 == msr AMEVTYPER113_EL0, x0
0xc0,0xdf,0x1b,0xd5 == msr AMEVTYPER114_EL0, x0
0xe0,0xdf,0x1b,0xd5 == msr AMEVTYPER115_EL0, x0
0x00,0xd2,0x3b,0xd5 == mrs x0, AMCR_EL0
0x20,0xd2,0x3b,0xd5 == mrs x0, AMCFGR_EL0
0x40,0xd2,0x3b,0xd5 == mrs x0, AMCGCR_EL0
0x60,0xd2,0x3b,0xd5 == mrs x0, AMUSERENR_EL0
0x80,0xd2,0x3b,0xd5 == mrs x0, AMCNTENCLR0_EL0
0xa0,0xd2,0x3b,0xd5 == mrs x0, AMCNTENSET0_EL0
0x00,0xd4,0x3b,0xd5 == mrs x0, AMEVCNTR00_EL0
0x20,0xd4,0x3b,0xd5 == mrs x0, AMEVCNTR01_EL0
0x40,0xd4,0x3b,0xd5 == mrs x0, AMEVCNTR02_EL0
0x60,0xd4,0x3b,0xd5 == mrs x0, AMEVCNTR03_EL0
0x00,0xd6,0x3b,0xd5 == mrs x0, AMEVTYPER00_EL0
0x20,0xd6,0x3b,0xd5 == mrs x0, AMEVTYPER01_EL0
0x40,0xd6,0x3b,0xd5 == mrs x0, AMEVTYPER02_EL0
0x60,0xd6,0x3b,0xd5 == mrs x0, AMEVTYPER03_EL0
0x00,0xd3,0x3b,0xd5 == mrs x0, AMCNTENCLR1_EL0
0x20,0xd3,0x3b,0xd5 == mrs x0, AMCNTENSET1_EL0
0x00,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR10_EL0
0x20,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR11_EL0
0x40,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR12_EL0
0x60,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR13_EL0
0x80,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR14_EL0
0xa0,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR15_EL0
0xc0,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR16_EL0
0xe0,0xdc,0x3b,0xd5 == mrs x0, AMEVCNTR17_EL0
0x00,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR18_EL0
0x20,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR19_EL0
0x40,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR110_EL0
0x60,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR111_EL0
0x80,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR112_EL0
0xa0,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR113_EL0
0xc0,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR114_EL0
0xe0,0xdd,0x3b,0xd5 == mrs x0, AMEVCNTR115_EL0
0x00,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER10_EL0
0x20,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER11_EL0
0x40,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER12_EL0
0x60,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER13_EL0
0x80,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER14_EL0
0xa0,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER15_EL0
0xc0,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER16_EL0
0xe0,0xde,0x3b,0xd5 == mrs x0, AMEVTYPER17_EL0
0x00,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER18_EL0
0x20,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER19_EL0
0x40,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER110_EL0
0x60,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER111_EL0
0x80,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER112_EL0
0xa0,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER113_EL0
0xc0,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER114_EL0
0xe0,0xdf,0x3b,0xd5 == mrs x0, AMEVTYPER115_EL0