[compiler-rt] r272551 - [builtins] Make SOFT_FP versions of floatdidf and floatundidf compile

Jeroen Ketema via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 13 08:24:16 PDT 2016


Author: jketema
Date: Mon Jun 13 10:24:16 2016
New Revision: 272551

URL: http://llvm.org/viewvc/llvm-project?rev=272551&view=rev
Log:
[builtins] Make SOFT_FP versions of floatdidf and floatundidf compile

Modified:
    compiler-rt/trunk/lib/builtins/floatdidf.c
    compiler-rt/trunk/lib/builtins/floatundidf.c

Modified: compiler-rt/trunk/lib/builtins/floatdidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/floatdidf.c?rev=272551&r1=272550&r2=272551&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/floatdidf.c (original)
+++ compiler-rt/trunk/lib/builtins/floatdidf.c Mon Jun 13 10:24:16 2016
@@ -98,10 +98,10 @@ __floatdidf(di_int a)
         /* a is now rounded to DBL_MANT_DIG bits */
     }
     double_bits fb;
-    fb.u.high = ((su_int)s & 0x80000000) |        /* sign */
-                ((e + 1023) << 20)      |        /* exponent */
-                ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
-    fb.u.low = (su_int)a;                         /* mantissa-low */
+    fb.u.s.high = ((su_int)s & 0x80000000) |        /* sign */
+                  ((e + 1023) << 20)       |        /* exponent */
+                  ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
+    fb.u.s.low = (su_int)a;                         /* mantissa-low */
     return fb.f;
 }
 #endif

Modified: compiler-rt/trunk/lib/builtins/floatundidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/floatundidf.c?rev=272551&r1=272550&r2=272551&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/floatundidf.c (original)
+++ compiler-rt/trunk/lib/builtins/floatundidf.c Mon Jun 13 10:24:16 2016
@@ -98,9 +98,9 @@ __floatundidf(du_int a)
         /* a is now rounded to DBL_MANT_DIG bits */
     }
     double_bits fb;
-    fb.u.high = ((e + 1023) << 20)      |        /* exponent */
-                ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
-    fb.u.low = (su_int)a;                         /* mantissa-low  */
+    fb.u.s.high = ((e + 1023) << 20)       |        /* exponent */
+                  ((su_int)(a >> 32) & 0x000FFFFF); /* mantissa-high */
+    fb.u.s.low = (su_int)a;                         /* mantissa-low  */
     return fb.f;
 }
 #endif




More information about the llvm-commits mailing list