Improve compatibility with older versions of Windows.
[llvm/msp430.git] / test / FrontendC / 2004-06-17-UnorderedBuiltins.c
blob5e02e7f325aa45b6ed34c615bef82aa6722c16c3
1 // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
4 _Bool A, B, C, D, E, F, G, H;
5 void TestF(float X, float Y) {
6 A = __builtin_isgreater(X, Y);
7 B = __builtin_isgreaterequal(X, Y);
8 C = __builtin_isless(X, Y);
9 D = __builtin_islessequal(X, Y);
10 E = __builtin_islessgreater(X, Y);
11 F = __builtin_isunordered(X, Y);
12 //G = __builtin_isordered(X, Y); // Our current snapshot of GCC doesn't include this builtin
13 H = __builtin_isunordered(X, Y);
15 void TestD(double X, double Y) {
16 A = __builtin_isgreater(X, Y);
17 B = __builtin_isgreaterequal(X, Y);
18 C = __builtin_isless(X, Y);
19 D = __builtin_islessequal(X, Y);
20 E = __builtin_islessgreater(X, Y);
21 F = __builtin_isunordered(X, Y);
22 //G = __builtin_isordered(X, Y); // Our current snapshot doesn't include this builtin. FIXME
23 H = __builtin_isunordered(X, Y);