diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2007-02-21 22:03:15 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2007-02-21 22:03:15 +0000 |
commit | 410c3010d475d6fb63d329dfc3e2b3e77101c113 (patch) | |
tree | 4246f50983291dde06506c51a38c294290ebc145 /gcc | |
parent | 5b0202af1848f821c29d510d814af06f7670d093 (diff) | |
download | gcc-410c3010d475d6fb63d329dfc3e2b3e77101c113.zip gcc-410c3010d475d6fb63d329dfc3e2b3e77101c113.tar.gz gcc-410c3010d475d6fb63d329dfc3e2b3e77101c113.tar.bz2 |
builtin-ldexp-1.c: Use -fno-finite-math-only on sh* targets.
* gcc.dg/torture/builtin-ldexp-1.c: Use -fno-finite-math-only on
sh* targets. Call the correct CKSGN macro.
From-SVN: r122206
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/builtin-ldexp-1.c | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 55927de..b0c6a20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * gcc.dg/torture/builtin-ldexp-1.c: Use -fno-finite-math-only on + sh* targets. Call the correct CKSGN macro. + 2007-02-21 Jakub Jelinek <jakub@redhat.com> * gfortran.dg/gomp/omp_parse1.f90: New test. diff --git a/gcc/testsuite/gcc.dg/torture/builtin-ldexp-1.c b/gcc/testsuite/gcc.dg/torture/builtin-ldexp-1.c index aa9906f..6efa870 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-ldexp-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-ldexp-1.c @@ -6,6 +6,7 @@ Origin: Kaveh R. Ghazi, February 17, 2007. */ /* { dg-do link } */ +/* { dg-options "-fno-finite-math-only" { target sh*-*-* } } */ extern void link_error(int); @@ -21,13 +22,13 @@ extern void link_error(int); /* Test that FUNC(ARG1,ARG2) == RES. Check the sign for -0.0. */ #define TESTIT(FUNC,ARG1,ARG2,RES) do { \ if (__builtin_##FUNC##f(ARG1##f,ARG2) != RES##f \ - || CKSGN(__builtin_##FUNC##f(ARG1##f,ARG2),RES##f)) \ + || CKSGN_F(__builtin_##FUNC##f(ARG1##f,ARG2),RES##f)) \ link_error(__LINE__); \ if (__builtin_##FUNC(ARG1,ARG2) != RES \ || CKSGN(__builtin_##FUNC(ARG1,ARG2),RES)) \ link_error(__LINE__); \ if (__builtin_##FUNC##l(ARG1##l,ARG2) != RES##l \ - || CKSGN(__builtin_##FUNC##l(ARG1##l,ARG2),RES##l)) \ + || CKSGN_L(__builtin_##FUNC##l(ARG1##l,ARG2),RES##l)) \ link_error(__LINE__); \ } while (0) @@ -46,13 +47,13 @@ extern void link_error(int); the sign as well. */ #define TESTIT3(FUNC,NEG,FUNCARG,ARGARG,ARG2,FUNCRES) do { \ if (!__builtin_##FUNCRES##f(__builtin_##FUNC##f(NEG __builtin_##FUNCARG##f(ARGARG),ARG2)) \ - || CKSGN(__builtin_##FUNC##f(NEG __builtin_##FUNCARG##f(ARGARG),ARG2), NEG __builtin_##FUNCARG##f(ARGARG))) \ + || CKSGN_F(__builtin_##FUNC##f(NEG __builtin_##FUNCARG##f(ARGARG),ARG2), NEG __builtin_##FUNCARG##f(ARGARG))) \ link_error(__LINE__); \ if (!__builtin_##FUNCRES(__builtin_##FUNC(NEG __builtin_##FUNCARG(ARGARG),ARG2)) \ || CKSGN(__builtin_##FUNC(NEG __builtin_##FUNCARG(ARGARG),ARG2), NEG __builtin_##FUNCARG(ARGARG))) \ link_error(__LINE__); \ if (!__builtin_##FUNCRES##l(__builtin_##FUNC##l(NEG __builtin_##FUNCARG##l(ARGARG),ARG2)) \ - || CKSGN(__builtin_##FUNC##l(NEG __builtin_##FUNCARG##l(ARGARG),ARG2), NEG __builtin_##FUNCARG##l(ARGARG))) \ + || CKSGN_L(__builtin_##FUNC##l(NEG __builtin_##FUNCARG##l(ARGARG),ARG2), NEG __builtin_##FUNCARG##l(ARGARG))) \ link_error(__LINE__); \ } while (0) |