aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/gnuattr3.c
blob: 0ec1c6fa130120f2b8bf463ad3f8ee289838c462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile { target { powerpc*-linux-* } } } */
/* { dg-options "-O2 -mvsx -mabi=ibmlongdouble -Wno-psabi" } */
/* { dg-require-effective-target powerpc_vsx } */
/* { dg-final { scan-assembler "gnu_attribute 4, 5" } } */

/* Check that if we can do the long double operation without doing an emulator
   call, such as with copysign, that we still set the appropriate
   .gnu_attribute.  */

long double a, b, c;

void cs (void)
{
  a = __builtin_copysignl (b, c);
}