[llvm-commits] [dragonegg] r127158 - /dragonegg/trunk/llvm-types.cpp

Duncan Sands baldrick at free.fr
Mon Mar 7 06:51:33 PST 2011


Author: baldrick
Date: Mon Mar  7 08:51:33 2011
New Revision: 127158

URL: http://llvm.org/viewvc/llvm-project?rev=127158&view=rev
Log:
Turn __float128 into fp128 on linux.  Giving this a whirl through the
buildbots to see if it breaks the self-host.

Modified:
    dragonegg/trunk/llvm-types.cpp

Modified: dragonegg/trunk/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-types.cpp?rev=127158&r1=127157&r2=127158&view=diff
==============================================================================
--- dragonegg/trunk/llvm-types.cpp (original)
+++ dragonegg/trunk/llvm-types.cpp Mon Mar  7 08:51:33 2011
@@ -706,14 +706,9 @@
     case 128:
 #ifdef TARGET_POWERPC
       Ty = SET_TYPE_LLVM(type, Type::getPPC_FP128Ty(Context));
-#elif defined(TARGET_ZARCH) || defined(TARGET_CPU_sparc)  // FIXME: Use some generic define.
-      // This is for IEEE double extended, e.g. Sparc
-      Ty = SET_TYPE_LLVM(type, Type::getFP128Ty(Context));
 #else
-      // 128-bit long doubles map onto { double, double }.
-      Ty = SET_TYPE_LLVM(type,
-                         StructType::get(Context, Type::getDoubleTy(Context),
-                                         Type::getDoubleTy(Context), NULL));
+      // IEEE quad precision.
+      Ty = SET_TYPE_LLVM(type, Type::getFP128Ty(Context));
 #endif
       break;
     }





More information about the llvm-commits mailing list