mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-03 02:53:06 +00:00
Test that C99 unordered comparison functions are not being turned into libc calls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
562d5b0f6d
commit
eaf10c8242
21
test/CFrontend/2004-06-17-UnorderedCompares.c.tr
Normal file
21
test/CFrontend/2004-06-17-UnorderedCompares.c.tr
Normal file
@ -0,0 +1,21 @@
|
||||
// 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 = isgreater(X, Y);
|
||||
B = isgreaterequal(X, Y);
|
||||
C = isless(X, Y);
|
||||
D = islessequal(X, Y);
|
||||
E = islessgreater(X, Y);
|
||||
F = 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user