blob: 90360c4b58c03a4442ce19a93486e85fe652e673 [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
2
3
4_Bool A, B, C, D, E, F, G, H;
5void 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}
15void 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}