mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-05 10:40:06 +01:00
bugfix for testing
This commit is contained in:
@@ -156,13 +156,13 @@ class ParserAArch64v81(BaseParser):
|
||||
operand_rest = pp.Group((register ^ immediate ^ memory ^ arith_immediate) | identifier)
|
||||
self.instruction_parser = (
|
||||
mnemonic
|
||||
+ pp.Optional(operand_first).setResultsName('operand1')
|
||||
+ pp.Optional(operand_first.setResultsName('operand1'))
|
||||
+ pp.Optional(pp.Suppress(pp.Literal(',')))
|
||||
+ pp.Optional(operand_rest).setResultsName('operand2')
|
||||
+ pp.Optional(operand_rest.setResultsName('operand2'))
|
||||
+ pp.Optional(pp.Suppress(pp.Literal(',')))
|
||||
+ pp.Optional(operand_rest).setResultsName('operand3')
|
||||
+ pp.Optional(operand_rest.setResultsName('operand3'))
|
||||
+ pp.Optional(pp.Suppress(pp.Literal(',')))
|
||||
+ pp.Optional(operand_rest).setResultsName('operand4')
|
||||
+ pp.Optional(operand_rest.setResultsName('operand4'))
|
||||
+ pp.Optional(self.comment)
|
||||
)
|
||||
self.opf = operand_first
|
||||
|
||||
@@ -86,11 +86,11 @@ class ParserX86ATT(BaseParser):
|
||||
operand_rest = pp.Group(register ^ immediate ^ memory)
|
||||
self.instruction_parser = (
|
||||
mnemonic
|
||||
+ pp.Optional(operand_first).setResultsName('operand1')
|
||||
+ pp.Optional(operand_first.setResultsName('operand1'))
|
||||
+ pp.Optional(pp.Suppress(pp.Literal(',')))
|
||||
+ pp.Optional(operand_rest).setResultsName('operand2')
|
||||
+ pp.Optional(operand_rest.setResultsName('operand2'))
|
||||
+ pp.Optional(pp.Suppress(pp.Literal(',')))
|
||||
+ pp.Optional(operand_rest).setResultsName('operand3')
|
||||
+ pp.Optional(operand_rest.setResultsName('operand3'))
|
||||
+ pp.Optional(self.comment)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user