Skip to content

Commit

Permalink
Merge branch 'master' of github.com:RRZE-HPC/osaca
Browse files Browse the repository at this point in the history
  • Loading branch information
JanLJL committed Oct 10, 2024
2 parents 9bc4ca2 + a8cab31 commit 856ae73
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions osaca/parser/parser_AArch64.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ def process_directive_operand(self, operand):

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):
Expand Down
6 changes: 3 additions & 3 deletions osaca/parser/parser_x86att.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,12 @@ def process_operand(self, operand):

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):
Expand Down
8 changes: 4 additions & 4 deletions osaca/parser/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ def __init__(
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
Expand Down Expand Up @@ -93,7 +93,7 @@ def prefix(self):

@prefix.setter
def prefix(self, prefix):
self._prefix = prefix
self._prefix = prefix.lower()

@property
def regtype(self):
Expand Down

0 comments on commit 856ae73

Please sign in to comment.