[llvm-commits] [parallel] CVS: llvm/test/Programs/SingleSource/UnitTests/2004-02-02-NegativeZero.c

Misha Brukman brukman at cs.uiuc.edu
Mon Mar 1 20:37:51 PST 2004


Changes in directory llvm/test/Programs/SingleSource/UnitTests:

2004-02-02-NegativeZero.c added (r1.1.2.1)

---
Log message:

Merge from trunk

---
Diffs of the changes:  (+12 -0)

Index: llvm/test/Programs/SingleSource/UnitTests/2004-02-02-NegativeZero.c
diff -c /dev/null llvm/test/Programs/SingleSource/UnitTests/2004-02-02-NegativeZero.c:1.1.2.1
*** /dev/null	Mon Mar  1 17:59:24 2004
--- llvm/test/Programs/SingleSource/UnitTests/2004-02-02-NegativeZero.c	Mon Mar  1 17:59:14 2004
***************
*** 0 ****
--- 1,12 ----
+ void test(double X) {
+   printf("%f %f\n", -0.0 - X, -X);
+ }
+ int main() {
+   test(+0.0);
+   test(-0.0);
+ 
+ 
+   printf("negzero = %f  poszero = %f\n", -0.0, +0.0);
+ }
+ 
+ 





More information about the llvm-commits mailing list