2004-12-08 16:41:34 +00:00
|
|
|
// RUN: %llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | grep -v llvm.isunordered | not grep call
|
2004-06-18 05:42:50 +00:00
|
|
|
|
|
|
|
#include <math.h>
|
|
|
|
|
|
|
|
_Bool A, B, C, D, E, F;
|
|
|
|
void TestF(float X, float Y) {
|
2006-01-07 01:37:25 +00:00
|
|
|
A = __builtin_isgreater(X, Y);
|
|
|
|
B = __builtin_isgreaterequal(X, Y);
|
|
|
|
C = __builtin_isless(X, Y);
|
|
|
|
D = __builtin_islessequal(X, Y);
|
|
|
|
E = __builtin_islessgreater(X, Y);
|
|
|
|
F = __builtin_isunordered(X, Y);
|
2004-06-18 05:42:50 +00:00
|
|
|
}
|
|
|
|
void TestD(double X, double Y) {
|
2006-01-07 01:37:25 +00:00
|
|
|
A = __builtin_isgreater(X, Y);
|
|
|
|
B = __builtin_isgreaterequal(X, Y);
|
|
|
|
C = __builtin_isless(X, Y);
|
|
|
|
D = __builtin_islessequal(X, Y);
|
|
|
|
E = __builtin_islessgreater(X, Y);
|
|
|
|
F = __builtin_isunordered(X, Y);
|
2004-06-18 05:42:50 +00:00
|
|
|
}
|