forked from OSchip/llvm-project
Tests for soft-float comparison functions
llvm-svn: 107414
This commit is contained in:
parent
735753d19c
commit
75a21dc9a7
|
@ -0,0 +1,479 @@
|
|||
//===-- cmpdf2_test.c - Test __cmpdf2 -------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file tests single-precision soft-double comparisons for the compiler-rt
|
||||
// library.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int __eqdf2(double, double);
|
||||
int __gedf2(double, double);
|
||||
int __gtdf2(double, double);
|
||||
int __ledf2(double, double);
|
||||
int __ltdf2(double, double);
|
||||
int __nedf2(double, double);
|
||||
int __unorddf2(double, double);
|
||||
|
||||
struct TestVector {
|
||||
double a;
|
||||
double b;
|
||||
int eqReference;
|
||||
int geReference;
|
||||
int gtReference;
|
||||
int leReference;
|
||||
int ltReference;
|
||||
int neReference;
|
||||
int unReference;
|
||||
};
|
||||
|
||||
int test__cmpdf2(const struct TestVector *vector) {
|
||||
|
||||
if (__eqdf2(vector->a, vector->b) != vector->eqReference) {
|
||||
printf("error in __eqdf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__eqdf2(vector->a, vector->b),
|
||||
vector->eqReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__gedf2(vector->a, vector->b) != vector->geReference) {
|
||||
printf("error in __gedf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__gedf2(vector->a, vector->b),
|
||||
vector->geReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__gtdf2(vector->a, vector->b) != vector->gtReference) {
|
||||
printf("error in __gtdf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__gtdf2(vector->a, vector->b),
|
||||
vector->gtReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__ledf2(vector->a, vector->b) != vector->leReference) {
|
||||
printf("error in __ledf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__ledf2(vector->a, vector->b),
|
||||
vector->leReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__ltdf2(vector->a, vector->b) != vector->ltReference) {
|
||||
printf("error in __ltdf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__ltdf2(vector->a, vector->b),
|
||||
vector->ltReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__nedf2(vector->a, vector->b) != vector->neReference) {
|
||||
printf("error in __nedf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__nedf2(vector->a, vector->b),
|
||||
vector->neReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__unorddf2(vector->a, vector->b) != vector->unReference) {
|
||||
printf("error in __unorddf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__unorddf2(vector->a, vector->b),
|
||||
vector->unReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
void generateVectors() {
|
||||
|
||||
const double arguments[] = {
|
||||
__builtin_nan(""),
|
||||
-__builtin_inf(),
|
||||
-0x1.fffffffffffffp1023,
|
||||
-0x1.0000000000001p0
|
||||
-0x1.0000000000000p0,
|
||||
-0x1.fffffffffffffp-1,
|
||||
-0x1.0000000000000p-1022,
|
||||
-0x0.fffffffffffffp-1022,
|
||||
-0x0.0000000000001p-1022,
|
||||
-0.0,
|
||||
0.0,
|
||||
0x0.0000000000001p-1022,
|
||||
0x0.fffffffffffffp-1022,
|
||||
0x1.0000000000000p-1022,
|
||||
0x1.fffffffffffffp-1,
|
||||
0x1.0000000000000p0,
|
||||
0x1.0000000000001p0,
|
||||
0x1.fffffffffffffp1023,
|
||||
__builtin_inf()
|
||||
};
|
||||
|
||||
int numArguments = sizeof arguments / sizeof arguments[0];
|
||||
|
||||
for (int i=0; i<numArguments; ++i) {
|
||||
for (int j=0; j<numArguments; ++j) {
|
||||
const double a = arguments[i];
|
||||
const double b = arguments[j];
|
||||
const int leResult = a < b ? -1 : a == b ? 0 : 1;
|
||||
const int geResult = a > b ? 1 : a == b ? 0 : -1;
|
||||
const int unResult = a != a || b != b ? 1 : 0;
|
||||
printf("{%a,%a,%d,%d,%d,%d,%d,%d,%d},\n",
|
||||
a, b,
|
||||
leResult,
|
||||
geResult,
|
||||
geResult,
|
||||
leResult,
|
||||
leResult,
|
||||
leResult,
|
||||
unResult);
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
static const struct TestVector vectors[] = {
|
||||
{__builtin_nan(""),__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-__builtin_inf(),1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-0x1.fffffffffffffp+1023,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-0x1p+1,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-0x1.fffffffffffffp-1,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-0x1p-1022,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-0x1.fffffcp-1023,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-0x1p-1074,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),-0x0p+0,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x0p+0,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x1p-1074,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x1.fffffcp-1023,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x1p-1022,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x1.fffffffffffffp-1,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x1p+0,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x1.0000000000001p+0,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),0x1.fffffffffffffp+1023,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nan(""),__builtin_inf(),1,-1,-1,1,1,1,1},
|
||||
{-__builtin_inf(),__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-__builtin_inf(),-__builtin_inf(),0,0,0,0,0,0,0},
|
||||
{-__builtin_inf(),-0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),-0x1p+1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),-0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),-0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),-0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),-0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),-0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inf(),__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1.fffffffffffffp+1023,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{-0x1.fffffffffffffp+1023,-0x1.fffffffffffffp+1023,0,0,0,0,0,0,0},
|
||||
{-0x1.fffffffffffffp+1023,-0x1p+1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,-0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,-0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,-0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,-0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,-0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp+1023,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1p+1,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{-0x1p+1,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{-0x1p+1,-0x1p+1,0,0,0,0,0,0,0},
|
||||
{-0x1p+1,-0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,-0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,-0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,-0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,-0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p+1,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1.fffffffffffffp-1,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{-0x1.fffffffffffffp-1,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffffffffffp-1,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffffffffffp-1,-0x1.fffffffffffffp-1,0,0,0,0,0,0,0},
|
||||
{-0x1.fffffffffffffp-1,-0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,-0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,-0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,-0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffffffffffp-1,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1p-1022,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{-0x1p-1022,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{-0x1p-1022,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{-0x1p-1022,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{-0x1p-1022,-0x1p-1022,0,0,0,0,0,0,0},
|
||||
{-0x1p-1022,-0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,-0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,-0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1022,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1.fffffcp-1023,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-1023,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-1023,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-1023,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-1023,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-1023,-0x1.fffffcp-1023,0,0,0,0,0,0,0},
|
||||
{-0x1.fffffcp-1023,-0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,-0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-1023,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1p-1074,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{-0x1p-1074,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{-0x1p-1074,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{-0x1p-1074,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{-0x1p-1074,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{-0x1p-1074,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{-0x1p-1074,-0x1p-1074,0,0,0,0,0,0,0},
|
||||
{-0x1p-1074,-0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x0p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-1074,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{-0x0p+0,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{-0x0p+0,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{-0x0p+0,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{-0x0p+0,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{-0x0p+0,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{-0x0p+0,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{-0x0p+0,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{-0x0p+0,-0x0p+0,0,0,0,0,0,0,0},
|
||||
{-0x0p+0,0x0p+0,0,0,0,0,0,0,0},
|
||||
{-0x0p+0,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p+0,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x0p+0,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x0p+0,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x0p+0,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x0p+0,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x0p+0,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x0p+0,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x0p+0,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x0p+0,-0x0p+0,0,0,0,0,0,0,0},
|
||||
{0x0p+0,0x0p+0,0,0,0,0,0,0,0},
|
||||
{0x0p+0,0x1p-1074,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p+0,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1074,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x1p-1074,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x1p-1074,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,-0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1p-1074,0x1p-1074,0,0,0,0,0,0,0},
|
||||
{0x1p-1074,0x1.fffffcp-1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1074,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1074,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1074,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1074,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1074,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1074,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-1023,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.fffffcp-1023,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,-0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-1023,0x1.fffffcp-1023,0,0,0,0,0,0,0},
|
||||
{0x1.fffffcp-1023,0x1p-1022,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-1023,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-1023,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-1023,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-1023,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-1023,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1022,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x1p-1022,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x1p-1022,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,-0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1p-1022,0x1p-1022,0,0,0,0,0,0,0},
|
||||
{0x1p-1022,0x1.fffffffffffffp-1,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1022,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1022,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1022,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-1022,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffffffffffp-1,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.fffffffffffffp-1,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,-0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp-1,0x1.fffffffffffffp-1,0,0,0,0,0,0,0},
|
||||
{0x1.fffffffffffffp-1,0x1p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffffffffffp-1,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffffffffffp-1,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffffffffffp-1,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p+0,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x1p+0,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x1p+0,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x1p+0,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x1p+0,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1p+0,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1p+0,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1p+0,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1p+0,-0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1p+0,0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1p+0,0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1p+0,0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1p+0,0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1p+0,0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1p+0,0x1p+0,0,0,0,0,0,0,0},
|
||||
{0x1p+0,0x1.0000000000001p+0,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p+0,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p+0,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.0000000000001p+0,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.0000000000001p+0,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,-0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,0x1p+0,1,1,1,1,1,1,0},
|
||||
{0x1.0000000000001p+0,0x1.0000000000001p+0,0,0,0,0,0,0,0},
|
||||
{0x1.0000000000001p+0,0x1.fffffffffffffp+1023,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.0000000000001p+0,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffffffffffp+1023,__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.fffffffffffffp+1023,-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,-0x1p+1,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,-0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x0p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x1p-1074,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x1p-1022,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x1p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x1.0000000000001p+0,1,1,1,1,1,1,0},
|
||||
{0x1.fffffffffffffp+1023,0x1.fffffffffffffp+1023,0,0,0,0,0,0,0},
|
||||
{0x1.fffffffffffffp+1023,__builtin_inf(),-1,-1,-1,-1,-1,-1,0},
|
||||
{__builtin_inf(),__builtin_nan(""),1,-1,-1,1,1,1,1},
|
||||
{__builtin_inf(),-__builtin_inf(),1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),-0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),-0x1p+1,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),-0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),-0x1p-1022,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),-0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),-0x1p-1074,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),-0x0p+0,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x0p+0,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x1p-1074,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x1.fffffcp-1023,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x1p-1022,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x1.fffffffffffffp-1,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x1p+0,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x1.0000000000001p+0,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),0x1.fffffffffffffp+1023,1,1,1,1,1,1,0},
|
||||
{__builtin_inf(),__builtin_inf(),0,0,0,0,0,0,0},
|
||||
};
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
const int numVectors = sizeof vectors / sizeof vectors[0];
|
||||
int i;
|
||||
for (i = 0; i<numVectors; ++i) {
|
||||
if (test__cmpdf2(&vectors[i])) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,479 @@
|
|||
//===-- cmpsf2_test.c - Test __cmpsf2 -------------------------------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This file tests single-precision soft-float comparisons for the compiler-rt
|
||||
// library.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int __eqsf2(float, float);
|
||||
int __gesf2(float, float);
|
||||
int __gtsf2(float, float);
|
||||
int __lesf2(float, float);
|
||||
int __ltsf2(float, float);
|
||||
int __nesf2(float, float);
|
||||
int __unordsf2(float, float);
|
||||
|
||||
struct TestVector {
|
||||
float a;
|
||||
float b;
|
||||
int eqReference;
|
||||
int geReference;
|
||||
int gtReference;
|
||||
int leReference;
|
||||
int ltReference;
|
||||
int neReference;
|
||||
int unReference;
|
||||
};
|
||||
|
||||
int test__cmpsf2(const struct TestVector *vector) {
|
||||
|
||||
if (__eqsf2(vector->a, vector->b) != vector->eqReference) {
|
||||
printf("error in __eqsf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__eqsf2(vector->a, vector->b),
|
||||
vector->eqReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__gesf2(vector->a, vector->b) != vector->geReference) {
|
||||
printf("error in __gesf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__gesf2(vector->a, vector->b),
|
||||
vector->geReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__gtsf2(vector->a, vector->b) != vector->gtReference) {
|
||||
printf("error in __gtsf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__gtsf2(vector->a, vector->b),
|
||||
vector->gtReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__lesf2(vector->a, vector->b) != vector->leReference) {
|
||||
printf("error in __lesf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__lesf2(vector->a, vector->b),
|
||||
vector->leReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__ltsf2(vector->a, vector->b) != vector->ltReference) {
|
||||
printf("error in __ltsf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__ltsf2(vector->a, vector->b),
|
||||
vector->ltReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__nesf2(vector->a, vector->b) != vector->neReference) {
|
||||
printf("error in __nesf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__nesf2(vector->a, vector->b),
|
||||
vector->neReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (__unordsf2(vector->a, vector->b) != vector->unReference) {
|
||||
printf("error in __unordsf2(%a, %a) = %d, expected %d\n",
|
||||
vector->a, vector->b,
|
||||
__unordsf2(vector->a, vector->b),
|
||||
vector->unReference);
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
void generateVectors() {
|
||||
|
||||
const float arguments[] = {
|
||||
__builtin_nanf(""),
|
||||
-__builtin_inff(),
|
||||
-0x1.fffffep127,
|
||||
-0x1.000002p0
|
||||
-0x1.000000p0,
|
||||
-0x1.fffffep-1f,
|
||||
-0x1.000000p-126f,
|
||||
-0x0.fffffep-126f,
|
||||
-0x0.000002p-126f,
|
||||
-0.0,
|
||||
0.0,
|
||||
0x0.000002p-126f,
|
||||
0x0.fffffep-126f,
|
||||
0x1.000000p-126f,
|
||||
0x1.fffffep-1f,
|
||||
0x1.000000p0,
|
||||
0x1.000002p0,
|
||||
0x1.fffffep127,
|
||||
__builtin_inff()
|
||||
};
|
||||
|
||||
int numArguments = sizeof arguments / sizeof arguments[0];
|
||||
|
||||
for (int i=0; i<numArguments; ++i) {
|
||||
for (int j=0; j<numArguments; ++j) {
|
||||
const float a = arguments[i];
|
||||
const float b = arguments[j];
|
||||
const int leResult = a < b ? -1 : a == b ? 0 : 1;
|
||||
const int geResult = a > b ? 1 : a == b ? 0 : -1;
|
||||
const int unResult = a != a || b != b ? 1 : 0;
|
||||
printf("{%a,%a,%d,%d,%d,%d,%d,%d,%d},\n",
|
||||
a, b,
|
||||
leResult,
|
||||
geResult,
|
||||
geResult,
|
||||
leResult,
|
||||
leResult,
|
||||
leResult,
|
||||
unResult);
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
static const struct TestVector vectors[] = {
|
||||
{__builtin_nanf(""),__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-__builtin_inff(),1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-0x1.fffffep+127f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-0x1p0f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-0x1.fffffep-1f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-0x1p-126f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-0x1.fffffcp-127,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-0x1p-149f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),-0x0p0f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x0p0f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x1p-149f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x1.fffffcp-127,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x1p-126f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x1.fffffep-1f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x1p0f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x1.000002p0f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),0x1.fffffep+127f,1,-1,-1,1,1,1,1},
|
||||
{__builtin_nanf(""),__builtin_inff(),1,-1,-1,1,1,1,1},
|
||||
{-__builtin_inff(),__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-__builtin_inff(),-__builtin_inff(),0,0,0,0,0,0,0},
|
||||
{-__builtin_inff(),-0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),-0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),-0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),-0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),-0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),-0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),-0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-__builtin_inff(),__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1.fffffep+127f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{-0x1.fffffep+127f,-0x1.fffffep+127f,0,0,0,0,0,0,0},
|
||||
{-0x1.fffffep+127f,-0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,-0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,-0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,-0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,-0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,-0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep+127f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1p0f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{-0x1p0f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{-0x1p0f,-0x1p0f,0,0,0,0,0,0,0},
|
||||
{-0x1p0f,-0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,-0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,-0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,-0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,-0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p0f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1.fffffep-1f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{-0x1.fffffep-1f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffep-1f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffep-1f,-0x1.fffffep-1f,0,0,0,0,0,0,0},
|
||||
{-0x1.fffffep-1f,-0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,-0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,-0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,-0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffep-1f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1p-126f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{-0x1p-126f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{-0x1p-126f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{-0x1p-126f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{-0x1p-126f,-0x1p-126f,0,0,0,0,0,0,0},
|
||||
{-0x1p-126f,-0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,-0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,-0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-126f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1.fffffcp-127,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-127,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-127,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-127,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-127,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{-0x1.fffffcp-127,-0x1.fffffcp-127,0,0,0,0,0,0,0},
|
||||
{-0x1.fffffcp-127,-0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,-0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1.fffffcp-127,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-0x1p-149f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{-0x1p-149f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{-0x1p-149f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{-0x1p-149f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{-0x1p-149f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{-0x1p-149f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{-0x1p-149f,-0x1p-149f,0,0,0,0,0,0,0},
|
||||
{-0x1p-149f,-0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x0p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x1p-149f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{-0x0p0f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{-0x0p0f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{-0x0p0f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{-0x0p0f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{-0x0p0f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{-0x0p0f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{-0x0p0f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{-0x0p0f,-0x0p0f,0,0,0,0,0,0,0},
|
||||
{-0x0p0f,0x0p0f,0,0,0,0,0,0,0},
|
||||
{-0x0p0f,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{-0x0p0f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x0p0f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x0p0f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x0p0f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x0p0f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x0p0f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x0p0f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x0p0f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x0p0f,-0x0p0f,0,0,0,0,0,0,0},
|
||||
{0x0p0f,0x0p0f,0,0,0,0,0,0,0},
|
||||
{0x0p0f,0x1p-149f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x0p0f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-149f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x1p-149f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x1p-149f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,-0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1p-149f,0x1p-149f,0,0,0,0,0,0,0},
|
||||
{0x1p-149f,0x1.fffffcp-127,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-149f,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-149f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-149f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-149f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-149f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-149f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-127,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.fffffcp-127,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,-0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffcp-127,0x1.fffffcp-127,0,0,0,0,0,0,0},
|
||||
{0x1.fffffcp-127,0x1p-126f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-127,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-127,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-127,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-127,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffcp-127,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-126f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x1p-126f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x1p-126f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,-0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1p-126f,0x1p-126f,0,0,0,0,0,0,0},
|
||||
{0x1p-126f,0x1.fffffep-1f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-126f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-126f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-126f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p-126f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffep-1f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.fffffep-1f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,-0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep-1f,0x1.fffffep-1f,0,0,0,0,0,0,0},
|
||||
{0x1.fffffep-1f,0x1p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffep-1f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffep-1f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffep-1f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p0f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x1p0f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x1p0f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1p0f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,-0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1p0f,0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1p0f,0x1p0f,0,0,0,0,0,0,0},
|
||||
{0x1p0f,0x1.000002p0f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p0f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1p0f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.000002p0f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.000002p0f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,-0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1.000002p0f,0x1.000002p0f,0,0,0,0,0,0,0},
|
||||
{0x1.000002p0f,0x1.fffffep+127f,-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.000002p0f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{0x1.fffffep+127f,__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{0x1.fffffep+127f,-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,-0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,-0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x0p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x1p-149f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x1p-126f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x1p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x1.000002p0f,1,1,1,1,1,1,0},
|
||||
{0x1.fffffep+127f,0x1.fffffep+127f,0,0,0,0,0,0,0},
|
||||
{0x1.fffffep+127f,__builtin_inff(),-1,-1,-1,-1,-1,-1,0},
|
||||
{__builtin_inff(),__builtin_nanf(""),1,-1,-1,1,1,1,1},
|
||||
{__builtin_inff(),-__builtin_inff(),1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),-0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),-0x1p0f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),-0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),-0x1p-126f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),-0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),-0x1p-149f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),-0x0p0f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x0p0f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x1p-149f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x1.fffffcp-127,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x1p-126f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x1.fffffep-1f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x1p0f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x1.000002p0f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),0x1.fffffep+127f,1,1,1,1,1,1,0},
|
||||
{__builtin_inff(),__builtin_inff(),0,0,0,0,0,0,0},
|
||||
};
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
const int numVectors = sizeof vectors / sizeof vectors[0];
|
||||
int i;
|
||||
for (i = 0; i<numVectors; ++i) {
|
||||
if (test__cmpsf2(&vectors[i])) return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue