Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2004-06-17-UnorderedCompares.c
blob38eafd0d5455230f6a79da1ae6711b671a3a70f4
1 // RUN: %clang_cc1 -std=c99 %s -emit-llvm -o - | FileCheck %s
2 // CHECK: @Test
3 // CHECK-NOT: call{{ }}
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);