summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/pr25960.c
blob: 9ab9a10a1a49742faef7088f08e35ae74c5abeab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do run { target { powerpc*-*-darwin* powerpc*-*-aix* rs6000-*-* powerpc*-*-linux* } } } */
/* { dg-options "-O2 -mlong-double-128" } */

extern void abort (void);

volatile long double l, m, n;

int
main (void)
{
  l = __builtin_copysignl (0.0L, -1.0L);
  m = __builtin_copysignl (0.0L, -1.0L);
  n = l + m;
  if (__builtin_copysignl (1.0L, n) >= 0.0L)
    abort ();
  return 0;
}