Skip to content

Commit

Permalink
v850: fix ld
Browse files Browse the repository at this point in the history
  • Loading branch information
imbillow committed Feb 2, 2024
1 parent 94a7dab commit a7ebeed
Show file tree
Hide file tree
Showing 2 changed files with 336 additions and 3 deletions.
7 changes: 4 additions & 3 deletions librz/analysis/arch/v850/v850_il.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,11 @@ static RzAnalysisLiftedILOp lift_ld(const V850AnalysisContext *ctx) {
SETL("_adr", addr),
SETG(GR_get(reg_dst), src_val));
} else {
return SEQ3(
return SEQ4(
SETL("_adr", addr),
SETG(GR_get(reg_dst), UNSIGNED(32, src_val)),
SETG(GR_get(reg_dst + 1), UNSIGNED(32, shr0(src_val, U32(32)))));
SETL("_src_v", src_val),
SETG(GR_get(reg_dst), UNSIGNED(32, VARL("_src_v"))),
SETG(GR_get(reg_dst + 1), UNSIGNED(32, shr0(VARL("_src_v"), U32(32)))));
}
err:
return NULL;
Expand Down
Loading

0 comments on commit a7ebeed

Please sign in to comment.