diff --git a/osaca/parser/parser_AArch64.py b/osaca/parser/parser_AArch64.py index 439ddbc..30dd9d6 100755 --- a/osaca/parser/parser_AArch64.py +++ b/osaca/parser/parser_AArch64.py @@ -198,7 +198,7 @@ class ParserAArch64(BaseParser): ).setResultsName("prfop") # Condition codes, based on http://tiny.cc/armcc condition = ( - pp.CaselessLiteral("EQ") # z set + pp.CaselessLiteral("EQ") # z set ^ pp.CaselessLiteral("NE") # z clear ^ pp.CaselessLiteral("CS") # c set ^ pp.CaselessLiteral("HS") # c set diff --git a/tests/test_parser_AArch64.py b/tests/test_parser_AArch64.py index 0bac579..c9ffc76 100755 --- a/tests/test_parser_AArch64.py +++ b/tests/test_parser_AArch64.py @@ -313,7 +313,7 @@ class TestParserAArch64(unittest.TestCase): {"register": {"prefix": "x", "name": "11"}}, {"immediate": {"value": 1, "type": "int"}}, {"immediate": {"value": 3, "type": "int"}}, - {"condition": "EQ"} + {"condition": "EQ"}, ], "directive": None, "comment": None, diff --git a/tests/test_semantics.py b/tests/test_semantics.py index 48247a0..1d22750 100755 --- a/tests/test_semantics.py +++ b/tests/test_semantics.py @@ -451,10 +451,7 @@ class TestSemanticTools(unittest.TestCase): dep_path = "6-10-11-12-13-14" self.assertEqual(lc_deps[dep_path]["latency"], 29.0) self.assertEqual( - [ - (iform.line_number, lat) - for iform, lat in lc_deps[dep_path]["dependencies"] - ], + [(iform.line_number, lat) for iform, lat in lc_deps[dep_path]["dependencies"]], [(6, 4.0), (10, 6.0), (11, 6.0), (12, 6.0), (13, 6.0), (14, 1.0)], ) dg = KernelDG(