[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 6 17:37:37 PST 2006



Changes in directory llvm/test/Regression/CFrontend:

2004-06-17-UnorderedCompares.c.tr updated: 1.5 -> 1.6
---
Log message:

Modify this test to not depend on the host math.h implementation


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

 2004-06-17-UnorderedCompares.c.tr |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)


Index: llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr
diff -u llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr:1.5 llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr:1.6
--- llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr:1.5	Tue Nov  8 15:11:32 2005
+++ llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr	Fri Jan  6 19:37:25 2006
@@ -1,22 +1,21 @@
 // RUN: %llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | grep -v llvm.isunordered | not grep call
-// XFAIL: sparc|ia64
 
 #include <math.h>
 
 _Bool A, B, C, D, E, F;
 void TestF(float X, float Y) {
-  A = isgreater(X, Y);
-  B = isgreaterequal(X, Y);
-  C = isless(X, Y);
-  D = islessequal(X, Y);
-  E = islessgreater(X, Y);
-  F = isunordered(X, Y);
+  A = __builtin_isgreater(X, Y);
+  B = __builtin_isgreaterequal(X, Y);
+  C = __builtin_isless(X, Y);
+  D = __builtin_islessequal(X, Y);
+  E = __builtin_islessgreater(X, Y);
+  F = __builtin_isunordered(X, Y);
 }
 void TestD(double X, double Y) {
-  A = isgreater(X, Y);
-  B = isgreaterequal(X, Y);
-  C = isless(X, Y);
-  D = islessequal(X, Y);
-  E = islessgreater(X, Y);
-  F = isunordered(X, Y);
+  A = __builtin_isgreater(X, Y);
+  B = __builtin_isgreaterequal(X, Y);
+  C = __builtin_isless(X, Y);
+  D = __builtin_islessequal(X, Y);
+  E = __builtin_islessgreater(X, Y);
+  F = __builtin_isunordered(X, Y);
 }






More information about the llvm-commits mailing list