mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2025-12-16 00:50:06 +01:00
fix #109
This commit is contained in:
@@ -411,12 +411,12 @@ class ParserAArch64(BaseParser):
|
||||
|
||||
def process_register_operand(self, operand):
|
||||
return RegisterOperand(
|
||||
prefix=operand["prefix"],
|
||||
prefix=operand["prefix"].lower(),
|
||||
name=operand["name"],
|
||||
shape=operand["shape"] if "shape" in operand else None,
|
||||
shape=operand["shape"].lower() if "shape" in operand else None,
|
||||
lanes=operand["lanes"] if "lanes" in operand else None,
|
||||
index=operand["index"] if "index" in operand else None,
|
||||
predication=operand["predication"] if "predication" in operand else None,
|
||||
predication=operand["predication"].lower() if "predication" in operand else None,
|
||||
)
|
||||
|
||||
def process_memory_address(self, memory_address):
|
||||
|
||||
@@ -311,12 +311,12 @@ class ParserX86ATT(BaseParser):
|
||||
|
||||
def process_register(self, operand):
|
||||
return RegisterOperand(
|
||||
prefix=operand["prefix"] if "prefix" in operand else None,
|
||||
prefix=operand["prefix"].lower() if "prefix" in operand else None,
|
||||
name=operand["name"],
|
||||
shape=operand["shape"] if "shape" in operand else None,
|
||||
shape=operand["shape"].lower() if "shape" in operand else None,
|
||||
lanes=operand["lanes"] if "lanes" in operand else None,
|
||||
index=operand["index"] if "index" in operand else None,
|
||||
predication=operand["predication"] if "predication" in operand else None,
|
||||
predication=operand["predication"].lower() if "predication" in operand else None,
|
||||
)
|
||||
|
||||
def process_directive(self, directive):
|
||||
|
||||
@@ -26,14 +26,14 @@ class RegisterOperand(Operand):
|
||||
super().__init__(source, destination)
|
||||
self._name = name
|
||||
self._width = width
|
||||
self._prefix = prefix
|
||||
self._prefix = prefix.lower() if prefix else None
|
||||
self._regtype = regtype
|
||||
self._lanes = lanes
|
||||
self._shape = shape
|
||||
self._shape = shape.lower() if shape else None
|
||||
self._index = index
|
||||
self._mask = mask
|
||||
self._zeroing = zeroing
|
||||
self._predication = predication
|
||||
self._predication = predication.lower() if predication else None
|
||||
self._pre_indexed = pre_indexed
|
||||
self._post_indexed = post_indexed
|
||||
self._shift = shift
|
||||
@@ -93,7 +93,7 @@ class RegisterOperand(Operand):
|
||||
|
||||
@prefix.setter
|
||||
def prefix(self, prefix):
|
||||
self._prefix = prefix
|
||||
self._prefix = prefix.lower()
|
||||
|
||||
@property
|
||||
def regtype(self):
|
||||
|
||||
Reference in New Issue
Block a user