From: Nate Begeman Date: Mon, 4 Apr 2005 09:09:00 +0000 (+0000) Subject: i1 loads should also be from the low byte of the argument word. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c3e2db407eee81631ccfbc4bec95f0b631f48fff;p=oota-llvm.git i1 loads should also be from the low byte of the argument word. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21077 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelPattern.cpp b/lib/Target/PowerPC/PPCISelPattern.cpp index 7066b4069c9..8751f421f7f 100644 --- a/lib/Target/PowerPC/PPCISelPattern.cpp +++ b/lib/Target/PowerPC/PPCISelPattern.cpp @@ -173,7 +173,7 @@ PPC32TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) { // that we ran out of physical registers of the appropriate type if (needsLoad) { unsigned SubregOffset = 0; - if (ObjectVT == MVT::i8) SubregOffset = 3; + if (ObjectVT == MVT::i8 || ObjectVT == MVT::i1) SubregOffset = 3; if (ObjectVT == MVT::i16) SubregOffset = 2; int FI = MFI->CreateFixedObject(ObjSize, ArgOffset); SDOperand FIN = DAG.getFrameIndex(FI, MVT::i32);