[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2005-05-12-Int64ToFP.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 12 21:41:27 PDT 2005
Changes in directory llvm-test/SingleSource/UnitTests:
2005-05-12-Int64ToFP.c added (r1.1)
---
Log message:
new testcase for 64-bit int -> FP operations
---
Diffs of the changes: (+15 -0)
2005-05-12-Int64ToFP.c | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm-test/SingleSource/UnitTests/2005-05-12-Int64ToFP.c
diff -c /dev/null llvm-test/SingleSource/UnitTests/2005-05-12-Int64ToFP.c:1.1
*** /dev/null Tue Apr 12 23:41:24 2005
--- llvm-test/SingleSource/UnitTests/2005-05-12-Int64ToFP.c Tue Apr 12 23:41:14 2005
***************
*** 0 ****
--- 1,15 ----
+
+ #include <stdio.h>
+
+
+ int main() {
+ unsigned long long NX = 124, X;
+
+ do {
+ X = NX;
+ printf("%llu = %f %lld = %f\n", X, (double)X, X, (double)(signed long long)X);
+ NX += 1ULL << 60;
+ } while (X < NX);
+
+ return 0;
+ }
More information about the llvm-commits
mailing list