mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
020f241883
automatically. Use -S with llvm-gcc rather than -c, so tests can work when llvm-gcc is really dragonegg (which can output IR with -S but not -c). llvm-svn: 120158
22 lines
612 B
C
22 lines
612 B
C
// RUN: %llvmgcc -xc -std=c99 %s -S -o - | grep -v llvm.isunordered | not grep call
|
|
|
|
#include <math.h>
|
|
|
|
_Bool A, B, C, D, E, F;
|
|
void TestF(float X, float Y) {
|
|
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);
|
|
}
|
|
void TestD(double X, double Y) {
|
|
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);
|
|
}
|