Skip to content

Commit 6ee00e7

Browse files
committed
Fix ldu
The manual says that this immediate is also sign-extended
1 parent 6e483e0 commit 6ee00e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/powerpc/powerpc_load.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ let ldx cpu ops =
228228
let ldu cpu ops =
229229
let rt = unsigned cpu.reg ops.(0) in
230230
let ra = signed cpu.reg ops.(1) in
231-
let im = unsigned imm16 ops.(2) in
231+
let im = signed imm16 ops.(2) in
232232
RTL.[
233233
rt := cpu.load (ra + im) doubleword;
234234
ra := ra + im;

0 commit comments

Comments
 (0)