This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Do Aarch64 char parameters and returns have the top undefined?

If a char parameter is passed to a routine in Aarch64 is the top of the word undefined? and is the same true for if a char value is returned? I think the answer is yes but it would be good to be certain. This means if the char is used in some arithmetic the UXTB, or SXTB for signed, modifiers as described at A64 Shift and Extend Operations: Operand Modifiers must be used in an instruction using a register containing a char passed into or returned from a routine.

I presume the same is true for short as well so a signed short might for instance come in with the top two bytes containing zero