summaryrefslogtreecommitdiff
path: root/checklink
diff options
context:
space:
mode:
Diffstat (limited to 'checklink')
-rw-r--r--checklink/Check.ml8
1 files changed, 7 insertions, 1 deletions
diff --git a/checklink/Check.ml b/checklink/Check.ml
index bda2a03..5821953 100644
--- a/checklink/Check.ml
+++ b/checklink/Check.ml
@@ -1742,11 +1742,17 @@ let rec compare_code ccode ecode pc: checker = fun fw ->
end
| Pfreeframe(sz, ofs) ->
begin match ecode with
+ | ADDI(rD, rA, simm) :: es ->
+ OK(fw)
+ >>= match_iregs GPR1 rD
+ >>= match_iregs GPR1 rA
+ >>= match_z_int32 sz (exts simm)
+ >>= recur_simpl
| LWZ(rD, rA, d) :: es ->
OK(fw)
>>= match_iregs GPR1 rD
>>= match_iregs GPR1 rA
- >>= match_z_int32 ofs (Int32.neg (exts d))
+ >>= match_z_int32 ofs (exts d)
>>= recur_simpl
| _ -> error
end