• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -emit-llvm %s  -o /dev/null
2 
3 
4 _Bool A, B, C, D, E, F, G, H;
TestF(float X,float Y)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 }
TestD(double X,double 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);
24 }
25