[llvm-dev] Problem with Aarch64 ?
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Thu Sep 8 02:03:13 PDT 2016
On 7 September 2016 at 18:32, Somenath Chakraborty via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> The value to the formal argument is zero-extended, different from x86_64. Is
> this a known issue ? Am I missing anything ?
This is specified in the ABI document:
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf.
Section 7.1 gives mappings from C types to underlying ones and says
that "char" is actually an "unsigned byte". This applies to 32-bit
AAPCS targets as well; but beware that Darwin targets don't follow
AAPCS here, and char is signed again.
Tim.
More information about the llvm-dev
mailing list