TFmode builtins and x86_64

Uros Bizjak ubizjak@gmail.com
Mon Jun 4 20:54:00 GMT 2007


Joseph S. Myers wrote:

>> We will use __builtin_copysignl() on TFmode value. However, IIUC these
>>     
>
> So create __builtin_copysign128 or similar that operates on TFmode values.
>   

I have managed to compile all *tf routines into libgcc.a by attached 
patch, but I don't know where to go from here. At least __powitf2 () 
works OK, multc () and divtc3 () compile, but since they are calling 
XFmode builtins, they truncate and extend to/from XFmode quite a lot.

Uros.

Index: config/i386/linux64.h
===================================================================
--- config/i386/linux64.h       (revision 125313)
+++ config/i386/linux64.h       (working copy)
@@ -89,6 +89,11 @@
 #define MULTILIB_DEFAULTS { "m32" }
 #endif
 
+/* Put all *tf routines in libgcc.  */
+#undef LIBGCC2_HAS_TF_MODE
+#define LIBGCC2_HAS_TF_MODE TARGET_64BIT
+#define TF_SIZE 113
+
 #undef NEED_INDICATE_EXEC_STACK
 #define NEED_INDICATE_EXEC_STACK 1
 



More information about the Gcc-patches mailing list