Tanya Lattner | e9af5d1 | 2004-11-06 22:41:00 +0000 | [diff] [blame] | 1 | // RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null |
| 2 | |
Chris Lattner | cb37056 | 2004-06-18 03:39:56 +0000 | [diff] [blame] | 3 | |
| 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); |
| 14 | } |
| 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); |
| 24 | } |