2000-09-21 Andreas Jaeger <aj@suse.de>
+ * math/libm-test.inc (atan_test): Test for existence of function.
+ (expm1_test): Likewise.
+ (acos_test): Likewise.
+ (asin_test): Likewise.
+ (exp_test): Likewise.
+ (log10_test): Likewise.
+ (log_test): Likewise.
+ (pow_test): Likewise.
+ (sqrt_test): Likewise.
+ (cos_test): Likewise.
+ (sin_test): Likewise.
+ (tan_test): Likewise.
+ (log1p_test): Likewise.
+ (log2_test): Likewise.
+
* sysdeps/i386/fpu/libm-test-ulps: Tweak some values for K6.
* libio/oldiofsetpos64.c: Fix alias names.
static void
acos_test (void)
{
+ errno = 0;
+ FUNC(acos) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (acos);
TEST_f_f (acos, plus_infty, nan_value, INVALID_EXCEPTION);
static void
asin_test (void)
{
+ errno = 0;
+ FUNC(asin) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
START (asin);
static void
atan_test (void)
{
+ errno = 0;
+ FUNC(atan) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
START (atan);
static void
cos_test (void)
{
+ errno = 0;
+ FUNC(cos) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (cos);
TEST_f_f (cos, 0, 1);
static void
exp_test (void)
{
+ errno = 0;
+ FUNC(exp) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (exp);
TEST_f_f (exp, 0, 1);
static void
expm1_test (void)
{
+ errno = 0;
+ FUNC(expm1) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (expm1);
TEST_f_f (expm1, 0, 0);
static void
fmod_test (void)
{
-
START (fmod);
/* fmod (+0, y) == +0 for y != 0. */
static void
log_test (void)
{
+ errno = 0;
+ FUNC(log) (1);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
START (log);
TEST_f_f (log, 0, minus_infty, DIVIDE_BY_ZERO_EXCEPTION);
static void
log10_test (void)
{
+ errno = 0;
+ FUNC(log10) (1);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (log10);
TEST_f_f (log10, 0, minus_infty, DIVIDE_BY_ZERO_EXCEPTION);
static void
log1p_test (void)
{
+ errno = 0;
+ FUNC(log1p) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (log1p);
TEST_f_f (log1p, 0, 0);
static void
log2_test (void)
{
+ errno = 0;
+ FUNC(log2) (1);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (log2);
TEST_f_f (log2, 0, minus_infty, DIVIDE_BY_ZERO_EXCEPTION);
pow_test (void)
{
+ errno = 0;
+ FUNC(pow) (0, 0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (pow);
TEST_ff_f (pow, 0, 0, 1);
static void
sin_test (void)
{
+ errno = 0;
+ FUNC(sin) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (sin);
TEST_f_f (sin, 0, 0);
static void
sqrt_test (void)
{
+ errno = 0;
+ FUNC(sqrt) (1);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (sqrt);
TEST_f_f (sqrt, 0, 0);
static void
tan_test (void)
{
+ errno = 0;
+ FUNC(tan) (0);
+ if (errno == ENOSYS)
+ /* Function not implemented. */
+ return;
+
START (tan);
TEST_f_f (tan, 0, 0);