[llvm-commits] CVS: llvm/test/Programs/SingleSource/Benchmarks/Misc/Makefile pi.c

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 13 22:33:01 PDT 2004


Changes in directory llvm/test/Programs/SingleSource/Benchmarks/Misc:

Makefile updated: 1.1 -> 1.2
pi.c updated: 1.4 -> 1.5

---
Log message:

Changes to allow pi to pass


---
Diffs of the changes:  (+2 -1)

Index: llvm/test/Programs/SingleSource/Benchmarks/Misc/Makefile
diff -u llvm/test/Programs/SingleSource/Benchmarks/Misc/Makefile:1.1 llvm/test/Programs/SingleSource/Benchmarks/Misc/Makefile:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Misc/Makefile:1.1	Thu Sep 11 12:58:24 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Misc/Makefile	Tue Apr 13 22:32:46 2004
@@ -1,4 +1,5 @@
 LEVEL = ../../../../..
 LDFLAGS += -lm
+FP_TOLERANCE := 0.001
 
 include $(LEVEL)/test/Programs/SingleSource/Makefile.singlesrc


Index: llvm/test/Programs/SingleSource/Benchmarks/Misc/pi.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Misc/pi.c:1.4 llvm/test/Programs/SingleSource/Benchmarks/Misc/pi.c:1.5
--- llvm/test/Programs/SingleSource/Benchmarks/Misc/pi.c:1.4	Sun Feb 29 21:41:00 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Misc/pi.c	Tue Apr 13 22:32:46 2004
@@ -55,6 +55,6 @@
       }
       printf(" x = %9.6f    y = %12.2f  low = %8d j = %7d\n",x,y,(int)low,(int)j);
       pi = 4.0 * (float)low/(float)itot;
-      printf("Pi = %9.6f ztot = %12.2f itot = %8d\n",pi,ztot,(int)itot);
+      printf("Pi = %9.6f ztot = %12.2f itot = %8d\n",pi,ztot*0.0,(int)itot);
       return 0;
 }





More information about the llvm-commits mailing list