From: Daniel Dunbar Date: Wed, 18 Feb 2009 22:19:44 +0000 (+0000) Subject: x86_64 ABI: Fix thinko in computation of bound for "passed in SSE regs" test. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90dafa1638edaffbba4b50f504d1470428a2d25d;p=clang x86_64 ABI: Fix thinko in computation of bound for "passed in SSE regs" test. Two more gcc/x86_64 failures down. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64963 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index 9b8b74196f..f012d93bfa 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -1011,7 +1011,7 @@ llvm::Value *X86_64ABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty, llvm::Value *FitsInFP = CGF.Builder.CreateICmpULE(fp_offset, llvm::ConstantInt::get(llvm::Type::Int32Ty, - 176 - neededSSE * 8), + 176 - neededSSE * 16), "fits_in_fp"); InRegs = InRegs ? CGF.Builder.CreateAnd(InRegs, FitsInFP) : FitsInFP; }