mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-07 03:30:06 +01:00
Formatting before PR
This commit is contained in:
@@ -433,9 +433,10 @@ class ParserAArch64(BaseParser):
|
||||
scale = 2 ** int(memory_address["index"]["shift"][0]["value"])
|
||||
if index is not None:
|
||||
index = RegisterOperand(
|
||||
name=index["name"], prefix_id=index["prefix"] if "prefix" in index else None,
|
||||
name=index["name"],
|
||||
prefix_id=index["prefix"] if "prefix" in index else None,
|
||||
shift=index["shift"] if "shift" in index else None,
|
||||
shift_op=index["shift_op"] if "shift_op" in index else None
|
||||
shift_op=index["shift_op"] if "shift_op" in index else None,
|
||||
)
|
||||
new_dict = MemoryOperand(
|
||||
offset_ID=offset,
|
||||
|
||||
@@ -22,7 +22,7 @@ class RegisterOperand(Operand):
|
||||
pre_indexed=False,
|
||||
post_indexed=False,
|
||||
shift=False,
|
||||
shift_op=False
|
||||
shift_op=False,
|
||||
):
|
||||
super().__init__(name, source, destination)
|
||||
self._width_id = width_id
|
||||
|
||||
@@ -216,7 +216,9 @@ class TestParserAArch64(unittest.TestCase):
|
||||
MemoryOperand(
|
||||
offset_ID=None,
|
||||
base_id=RegisterOperand(prefix_id="x", name="11"),
|
||||
index_id=RegisterOperand(prefix_id="w", name="10", shift_op="sxtw", shift=[{"value": "2"}]),
|
||||
index_id=RegisterOperand(
|
||||
prefix_id="w", name="10", shift_op="sxtw", shift=[{"value": "2"}]
|
||||
),
|
||||
scale_id=4,
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user