AArch64: mark small types (i1, i8, i16) as promoted
authorTim Northover <tnorthover@apple.com>
Tue, 3 Jun 2014 13:54:53 +0000 (13:54 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 3 Jun 2014 13:54:53 +0000 (13:54 +0000)
commit6890add11d2ef1948d4c16dca68a8ea96d46535d
tree99265ee3b3d4bdcfbdbf3b21b74cb4b69427e9dd
parent8c557283c0576d3382d70e859213ff50b1106dd4
AArch64: mark small types (i1, i8, i16) as promoted

This means the output of LowerFormalArguments returns a lowered
SDValue with the correct type (expected in SelectionDAGBuilder).
Without this, an assertion under a DEBUG macro triggers when those
types are passed on the stack.

llvm-svn: 210102
llvm/lib/Target/AArch64/AArch64CallingConvention.td
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/test/CodeGen/AArch64/arm64-abi.ll