added fallback search in arch/ISA model for ARM instructions with shape/cc suffixes

This commit is contained in:
JanLJL
2023-03-03 15:11:40 +01:00
parent 2884d17971
commit 9f715c0ba3
3 changed files with 71 additions and 3 deletions

View File

@@ -159,6 +159,10 @@ class TestSemanticTools(unittest.TestCase):
test_mm_arm.get_instruction("b.ne", [{"class": "identifier"}]),
test_mm_arm.get_instruction("b.ne", [{"class": "identifier"}]),
)
self.assertEqual(
test_mm_arm.get_instruction("b.someNameThatDoesNotExist", [{"class": "identifier"}]),
test_mm_arm.get_instruction("b.someOtherName", [{"class": "identifier"}]),
)
# test full instruction name
self.assertEqual(