Misc matches (#274)

This commit is contained in:
hatal175
2023-02-09 08:52:32 -07:00
committed by GitHub
parent df44816bec
commit d449897b87
54 changed files with 430 additions and 1915 deletions
+3 -2
View File
@@ -91,9 +91,10 @@ while idx < len(profile_bytes) - 16:
ADDI = 0x38 >> 2
LI = ADDI # an LI instruction is just an ADDI with RA=0
LMW = 0xB8 >> 2
FDIVS = 0xEC >> 2
if opcode_a == LWZ and \
opcode_b in [LI, LFS] and \
if opcode_a in [LWZ, LMW] and vanilla_inst_a[2] == 0x00 and \
opcode_b in [LI, LFS, FDIVS] and \
vanilla_inst_a == profile_inst_b and \
vanilla_inst_b == profile_inst_a and \
vanilla_inst_c == profile_inst_c and \