mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 14:17:59 +00:00
f11f07b81a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25138 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
623 B
Plaintext
22 lines
623 B
Plaintext
// RUN: %llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | 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);
|
|
}
|