Skip to content

PPC NCG: Promote integers to word size in C calls

Peter Trommler requested to merge wip/T16222 into master

All PowerPC ELF ABIs require for function calls that integer arguments smaller than wordsize are zero or sign extended. Im the PowerPC backend we assumed that zero or sign extension was done earlier in the compiler pipeline. This is no longer true because we now offer subword size primitive operations.

My understanding of the AIX ABI is that it also requires zero or sign extension so I provide no special case for AIX. If this is wrong, code will not be incorrect but in some cases performance will be suboptimal.

Fixes #16222 (closed)

Merge request reports