Small structs for PPC64 SVR4 must be passed right-justified in registers.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 19 Sep 2012 15:42:13 +0000 (15:42 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 19 Sep 2012 15:42:13 +0000 (15:42 +0000)
commit419f376564d17eaef7e5b4a77b066668e4272ecc
treebfcac2bd5262307d35474ded0b7cda397a89754a
parent57933e3481cd5bb042415452d39d0d7f4e62d644
Small structs for PPC64 SVR4 must be passed right-justified in registers.

lib/Target/PowerPC/PPCISelLowering.{h,cpp}
 Rename LowerFormalArguments_Darwin to LowerFormalArguments_Darwin_Or_64SVR4.
 Rename LowerFormalArguments_SVR4 to LowerFormalArguments_32SVR4.
 Receive small structs right-justified in LowerFormalArguments_Darwin_Or_64SVR4.
 Rename LowerCall_Darwin to LowerCall_Darwin_Or_64SVR4.
 Rename LowerCall_SVR4 to LowerCall_32SVR4.
 Pass small structs right-justified in LowerCall_Darwin_Or_64SVR4.

test/CodeGen/PowerPC/structsinregs.ll
 New test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164228 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/structsinregs.ll [new file with mode: 0644]