Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2004-06-17-UnorderedBuiltins.c
blob90360c4b58c03a4442ce19a93486e85fe652e673
1 // RUN: %clang_cc1 -emit-llvm %s -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);