Argument extension (zeroext/signext)
The ABI rule for who fills the upper bits when a char, short or bool is passed in a 64-bit register.
An 8-bit value in rdi leaves 56 bits up for grabs. Either the caller zero- or sign-extends them, or the callee may not trust them. Conventions have answered differently. The x86-64 System V ABI leaves the question open, yet Clang in practice assumes the caller has extended to 32 bits, because GCC always has — an unwritten rule other compilers have had to learn the hard way. Standard AAPCS64 puts the burden on the callee; Apple's arm64 ABI puts it on the caller. On RV64, 32-bit values are sign-extended to 64 bits even when they are unsigned.
In LLVM IR the choice shows up as the zeroext and signext parameter attributes, which the front end has to get right for every target.