Skip to content

Commit

Permalink
Add checks for MIPS details on cstest_py (#2640)
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored Feb 27, 2025
1 parent ace8056 commit 1bea3fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bindings/python/cstest_py/src/cstest_py/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,12 @@ def test_expected_mips(actual: CsInsn, expected: dict) -> bool:
for aop, eop in zip(actual.operands, expected["operands"]):
if not compare_enum(aop.type, eop.get("type"), "type"):
return False
if not compare_enum(aop.access, eop.get("access"), "access"):
return False
if not compare_tbool(aop.is_reglist, eop.get("is_reglist"), "is_reglist"):
return False
if not compare_tbool(aop.is_unsigned, eop.get("is_unsigned"), "is_unsigned"):
return False

if aop.type == MIPS_OP_REG:
if not compare_reg(actual, aop.reg, eop.get("reg"), "reg"):
Expand Down

0 comments on commit 1bea3fa

Please sign in to comment.