re PR target/36090 (ppc64 cacoshl miscompilation)

PR target/36090
	* gcc.c-torture/execute/20080502-1.c: New test.

From-SVN: r135508
This commit is contained in:
Jakub Jelinek 2008-05-18 22:19:03 +02:00 committed by Jakub Jelinek
parent 4ac3f385f7
commit 33ea7fa0c5
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-05-18 Jakub Jelinek <jakub@redhat.com>
PR target/36090
* gcc.c-torture/execute/20080502-1.c: New test.
2008-05-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* gfortran.dg/stat_1.f90: Skip on mingw.

View File

@ -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;
}