diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 76952e0f5faf..cd87bba7b258 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1535,9 +1535,11 @@ PPCTargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op, } ++VR_idx; } else { - // This should be simple, but requires getting 16-byte aligned stack - // values. - assert(0 && "Loading VR argument not implemented yet!"); + // Stack offset is aligned. + while (ArgOffset % 16 !=0) { + ArgOffset += PtrByteSize; + } + ArgOffset += 16; needsLoad = true; } break;