When removing a function from the function set and adding it to deferred, we
[llvm.git] / test / FrontendC / 2004-06-17-UnorderedCompares.c
blob286e7bc7cf7056ba048ada095cc7d777617ab4c1
1 // RUN: %llvmgcc -xc -std=c99 %s -S -o - | grep -v llvm.isunordered | not grep call
3 #include <math.h>
5 _Bool A, B, C, D, E, F;
6 void TestF(float X, float Y) {
7 A = __builtin_isgreater(X, Y);
8 B = __builtin_isgreaterequal(X, Y);
9 C = __builtin_isless(X, Y);
10 D = __builtin_islessequal(X, Y);
11 E = __builtin_islessgreater(X, Y);
12 F = __builtin_isunordered(X, Y);
14 void TestD(double X, double Y) {
15 A = __builtin_isgreater(X, Y);
16 B = __builtin_isgreaterequal(X, Y);
17 C = __builtin_isless(X, Y);
18 D = __builtin_islessequal(X, Y);
19 E = __builtin_islessgreater(X, Y);
20 F = __builtin_isunordered(X, Y);