i1 loads should also be from the low byte of the argument word.
authorNate Begeman <natebegeman@mac.com>
Mon, 4 Apr 2005 09:09:00 +0000 (09:09 +0000)
committerNate Begeman <natebegeman@mac.com>
Mon, 4 Apr 2005 09:09:00 +0000 (09:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21077 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelPattern.cpp

index 7066b4069c9a680a908fd0ed3c1650bb53bac02f..8751f421f7f724d82412660e9e2221b0922be352 100644 (file)
@@ -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);