[llvm-commits] CVS: llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr
Chris Lattner
lattner at cs.uiuc.edu
Fri Jun 18 00:50:01 PDT 2004
Changes in directory llvm/test/Regression/CFrontend:
2004-06-17-UnorderedCompares.c.tr added (r1.1)
---
Log message:
Test that C99 unordered comparison functions are not being turned into libc calls
---
Diffs of the changes: (+21 -0)
Index: llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr
diff -c /dev/null llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr:1.1
*** /dev/null Fri Jun 18 00:43:00 2004
--- llvm/test/Regression/CFrontend/2004-06-17-UnorderedCompares.c.tr Fri Jun 18 00:42:50 2004
***************
*** 0 ****
--- 1,21 ----
+ // RUN: llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | grep -v llvm.isunordered | not grep call
+
+ #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);
+ }
+ 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);
+ }
More information about the llvm-commits
mailing list