summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-02-18 22:19:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-02-18 22:19:44 +0000
commite60ec0abca6c88802d08d58ca88284b0fda9a5f7 (patch)
tree8fc1650b8a46f69463836999baed89d66be1850a /clang/lib/CodeGen
parenta790c8dcacc12726f6e29008155b82db8c38e827 (diff)
downloadbcm5719-llvm-e60ec0abca6c88802d08d58ca88284b0fda9a5f7.tar.gz
bcm5719-llvm-e60ec0abca6c88802d08d58ca88284b0fda9a5f7.zip
x86_64 ABI: Fix thinko in computation of bound for "passed in SSE regs" test.
Two more gcc/x86_64 failures down. llvm-svn: 64963
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 9b8b74196f5..f012d93bfae 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud