From c3fced6c3cab31d379081efa4d7173c6cd5ee999 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 7 May 2004 07:55:06 +0200 Subject: [PATCH] i386-387-1.c: Add new test for __builtin_fmod. * gcc.dg/i386-387-1.c: Add new test for __builtin_fmod. * gcc.dg/i386-387-2.c: Likewise. * gcc.dg/i386-387-5.c: Add new tests for __builtin_log1p and __builtin_drem. * gcc.dg/i386-387-6.c: Likewise. From-SVN: r81607 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/gcc.dg/i386-387-1.c | 2 ++ gcc/testsuite/gcc.dg/i386-387-2.c | 2 ++ gcc/testsuite/gcc.dg/i386-387-5.c | 5 ++++- gcc/testsuite/gcc.dg/i386-387-6.c | 4 ++++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c94bb5442cd..2f569390496 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2004-05-07 Uros Bizjak + + * gcc.dg/i386-387-1.c: Add new test for __builtin_fmod. + * gcc.dg/i386-387-2.c: Likewise. + + * gcc.dg/i386-387-5.c: Add new tests for __builtin_log1p and + __builtin_drem. + * gcc.dg/i386-387-6.c: Likewise. + 2004-05-07 Uros Bizjak * gcc.dg/builtins-33.c: Also check log1p*. diff --git a/gcc/testsuite/gcc.dg/i386-387-1.c b/gcc/testsuite/gcc.dg/i386-387-1.c index c196f2dc3e5..92b671bf99c 100644 --- a/gcc/testsuite/gcc.dg/i386-387-1.c +++ b/gcc/testsuite/gcc.dg/i386-387-1.c @@ -8,6 +8,7 @@ /* { dg-final { scan-assembler "call\t_?log" } } */ /* { dg-final { scan-assembler "call\t_?exp" } } */ /* { dg-final { scan-assembler "call\t_?tan" } } */ +/* { dg-final { scan-assembler "call\t_?fmod" } } */ double f1(double x) { return __builtin_sin(x); } double f2(double x) { return __builtin_cos(x); } @@ -16,3 +17,4 @@ double f4(double x, double y) { return __builtin_atan2(x,y); } double f5(double x) { return __builtin_log(x); } double f6(double x) { return __builtin_exp(x); } double f7(double x) { return __builtin_tan(x); } +double f8(double x, double y) { return __builtin_fmod(x,y); } diff --git a/gcc/testsuite/gcc.dg/i386-387-2.c b/gcc/testsuite/gcc.dg/i386-387-2.c index f98e04accd1..11eb0cc9aa5 100644 --- a/gcc/testsuite/gcc.dg/i386-387-2.c +++ b/gcc/testsuite/gcc.dg/i386-387-2.c @@ -8,6 +8,7 @@ /* { dg-final { scan-assembler "fyl2x" } } */ /* { dg-final { scan-assembler "f2xm1" } } */ /* { dg-final { scan-assembler "fptan" } } */ +/* { dg-final { scan-assembler "fprem" } } */ double f1(double x) { return __builtin_sin(x); } double f2(double x) { return __builtin_cos(x); } @@ -16,3 +17,4 @@ double f4(double x, double y) { return __builtin_atan2(x,y); } double f5(double x) { return __builtin_log(x); } double f6(double x) { return __builtin_exp(x); } double f7(double x) { return __builtin_tan(x); } +double f8(double x, double y) { return __builtin_fmod(x,y); } diff --git a/gcc/testsuite/gcc.dg/i386-387-5.c b/gcc/testsuite/gcc.dg/i386-387-5.c index 2c86dd0869a..7c512977420 100644 --- a/gcc/testsuite/gcc.dg/i386-387-5.c +++ b/gcc/testsuite/gcc.dg/i386-387-5.c @@ -2,6 +2,9 @@ /* { dg-do compile { target "i?86-*-*" } } */ /* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387 -march=i386" } */ /* { dg-final { scan-assembler "call\t_?atan" } } */ +/* { dg-final { scan-assembler "call\t_?log1p" } } */ +/* { dg-final { scan-assembler "call\t_?drem" } } */ double f1(double x) { return __builtin_atan(x); } - +double f2(double x) { return __builtin_log1p(x); } +double f3(double x, double y) { return __builtin_drem(x,y); } diff --git a/gcc/testsuite/gcc.dg/i386-387-6.c b/gcc/testsuite/gcc.dg/i386-387-6.c index 8eb29a11320..c8e5311c091 100644 --- a/gcc/testsuite/gcc.dg/i386-387-6.c +++ b/gcc/testsuite/gcc.dg/i386-387-6.c @@ -2,5 +2,9 @@ /* { dg-do compile { target "i?86-*-*" } } */ /* { dg-options "-O -ffast-math -mfpmath=387 -march=i686 -mno-fancy-math-387" } */ /* { dg-final { scan-assembler "fpatan" } } */ +/* { dg-final { scan-assembler "fyl2xp1" } } */ +/* { dg-final { scan-assembler "fprem1" } } */ double f1(double x) { return __builtin_atan(x); } +double f2(double x) { return __builtin_log1p(x); } +double f3(double x, double y) { return __builtin_drem(x,y); } -- 2.30.2