Skip to content

Commit

Permalink
Power: fix return calling convention
Browse files Browse the repository at this point in the history
Integer registers 0 to 15 are now available for returning results,
not 0 to 7 as before.
  • Loading branch information
xavierleroy committed Sep 1, 2021
1 parent 70db651 commit 007f5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asmcomp/power/proc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ let loc_parameters arg =
in loc

let loc_results res =
let (loc, _ofs) = calling_conventions 0 7 100 112 not_supported 0 res
let (loc, _ofs) = calling_conventions 0 15 100 112 not_supported 0 res
in loc

(* C calling conventions for ELF32:
Expand Down

0 comments on commit 007f5e7

Please sign in to comment.