From: Jakub Jelinek Date: Sun, 18 May 2008 20:19:03 +0000 (+0200) Subject: re PR target/36090 (ppc64 cacoshl miscompilation) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33ea7fa0c5339594ed22e84d027d2bb8e3ab8dc2;p=gcc.git re PR target/36090 (ppc64 cacoshl miscompilation) PR target/36090 * gcc.c-torture/execute/20080502-1.c: New test. From-SVN: r135508 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0e67e25c755..4f115c3ef19 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-05-18 Jakub Jelinek + + PR target/36090 + * gcc.c-torture/execute/20080502-1.c: New test. + 2008-05-18 Francois-Xavier Coudert * gfortran.dg/stat_1.f90: Skip on mingw. diff --git a/gcc/testsuite/gcc.c-torture/execute/20080502-1.c b/gcc/testsuite/gcc.c-torture/execute/20080502-1.c new file mode 100644 index 00000000000..ed9b2085e8e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20080502-1.c @@ -0,0 +1,16 @@ +/* PR target/36090 */ + +extern void abort (void); + +long double __attribute__ ((noinline)) foo (long double x) +{ + return __builtin_signbit (x) ? 3.1415926535897932384626433832795029L : 0.0; +} + +int +main (void) +{ + if (foo (-1.0L) != 3.1415926535897932384626433832795029L) + abort (); + return 0; +}