[llvm-commits] [llvm-gcc-4.0] r42134 - /llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
Dale Johannesen
dalej at apple.com
Wed Sep 19 07:31:45 PDT 2007
Author: johannes
Date: Wed Sep 19 09:31:45 2007
New Revision: 42134
URL: http://llvm.org/viewvc/llvm-project?rev=42134&view=rev
Log:
Fix some long double issues.
Modified:
llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp?rev=42134&r1=42133&r2=42134&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-convert.cpp Wed Sep 19 09:31:45 2007
@@ -4339,9 +4339,10 @@
Result = Builder.CreateIntCast(Result, DestTy, "cast");
return true;
}
+ case BUILT_IN_SQRTL:
+ return false; // treat long double as normal call
case BUILT_IN_SQRT:
case BUILT_IN_SQRTF:
- case BUILT_IN_SQRTL:
// If errno math has been disabled, expand these to llvm.sqrt calls.
if (!flag_errno_math) {
Value *Amt = Emit(TREE_VALUE(TREE_OPERAND(exp, 1)), 0);
@@ -4350,9 +4351,10 @@
return true;
}
break;
+ case BUILT_IN_POWIL:
+ return false; // treat long double as normal call
case BUILT_IN_POWI:
case BUILT_IN_POWIF:
- case BUILT_IN_POWIL:
Result = EmitBuiltinPOWI(exp);
return true;
case BUILT_IN_FFS: // These GCC builtins always return int.
More information about the llvm-commits
mailing list