From 19b4c2dfafb86c33367c0df983e4c9a45a8c18b5 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 12 Mar 2008 00:49:20 +0000 Subject: [PATCH] One more bit of Altivec parameter passing. llvm-svn: 48269 --- lib/Target/PowerPC/PPCISelLowering.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 76952e0f5fa..cd87bba7b25 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/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;