Initial import of compiler-rt.
-
llvm-svn: 74292
diff --git a/compiler-rt/lib/x86_64/floatdidf.c b/compiler-rt/lib/x86_64/floatdidf.c
new file mode 100644
index 0000000..ecef079
--- /dev/null
+++ b/compiler-rt/lib/x86_64/floatdidf.c
@@ -0,0 +1,15 @@
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+
+// double __floatdidf(di_int a);
+
+#ifdef __x86_64__
+
+#include <stdint.h>
+
+double __floatdidf(int64_t a)
+{
+ return (double)a;
+}
+
+#endif // __x86_64__
\ No newline at end of file