mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Modify this test to not depend on the host math.h implementation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e8d56c536d
commit
f11f07b81a
@ -1,22 +1,21 @@
|
||||
// RUN: %llvmgcc -xc -std=c99 %s -c -o - | llvm-dis | grep -v llvm.isunordered | not grep call
|
||||
// XFAIL: sparc|ia64
|
||||
|
||||
#include <math.h>
|
||||
|
||||
_Bool A, B, C, D, E, F;
|
||||
void TestF(float X, float Y) {
|
||||
A = isgreater(X, Y);
|
||||
B = isgreaterequal(X, Y);
|
||||
C = isless(X, Y);
|
||||
D = islessequal(X, Y);
|
||||
E = islessgreater(X, Y);
|
||||
F = isunordered(X, 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 = isgreater(X, Y);
|
||||
B = isgreaterequal(X, Y);
|
||||
C = isless(X, Y);
|
||||
D = islessequal(X, Y);
|
||||
E = islessgreater(X, Y);
|
||||
F = isunordered(X, 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user