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