added prefetch operand

This commit is contained in:
stefandesouza
2024-03-18 22:29:39 +01:00
parent 4fd59eb0d0
commit 78309574ac
5 changed files with 64 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ from osaca.parser.memory import MemoryOperand
from osaca.parser.register import RegisterOperand
from osaca.parser.immediate import ImmediateOperand
from osaca.parser.identifier import IdentifierOperand
from osaca.parser.prefetch import PrefetchOperand
class TestParserAArch64(unittest.TestCase):
@@ -233,7 +234,7 @@ class TestParserAArch64(unittest.TestCase):
instruction_form_5 = InstructionForm(
mnemonic="prfm",
operands=[
{"prfop": {"type": ["PLD"], "target": ["L1"], "policy": ["KEEP"]}},
PrefetchOperand(type_id=["PLD"],target=["L1"],policy=["KEEP"]),
MemoryOperand(
offset=ImmediateOperand(value=2048),
base=RegisterOperand(prefix="x", name="26"),