[llvm-commits] [llvm-gcc-4.2] r42135 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Dale Johannesen
dalej at apple.com
Wed Sep 19 07:56:38 PDT 2007
Author: johannes
Date: Wed Sep 19 09:56:38 2007
New Revision: 42135
URL: http://llvm.org/viewvc/llvm-project?rev=42135&view=rev
Log:
Fix some long double issues.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=42135&r1=42134&r2=42135&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Sep 19 09:56:38 2007
@@ -3919,9 +3919,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);
@@ -3930,9 +3931,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