mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-02 05:50:26 +08:00
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:
parent
4ac3f385f7
commit
33ea7fa0c5
@ -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.
|
||||
|
16
gcc/testsuite/gcc.c-torture/execute/20080502-1.c
Normal file
16
gcc/testsuite/gcc.c-torture/execute/20080502-1.c
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user