Skip to content

Commit

Permalink
Fix ldu
Browse files Browse the repository at this point in the history
The manual says that this immediate is also sign-extended
  • Loading branch information
bmourad01 committed May 9, 2024
1 parent 2606f20 commit e233074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/powerpc/powerpc_load.ml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ let ldx cpu ops =
let ldu cpu ops =
let rt = unsigned cpu.reg ops.(0) in
let ra = signed cpu.reg ops.(1) in
let im = unsigned imm16 ops.(2) in
let im = signed imm16 ops.(2) in
RTL.[
rt := cpu.load (ra + im) doubleword;
ra := ra + im;
Expand Down

0 comments on commit e233074

Please sign in to comment.