1 /* { dg-do compile { target { powerpc*-linux-* } } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-O2 -mvsx -mabi=ibmlongdouble -Wno-psabi" } */
4 /* { dg-final { scan-assembler "gnu_attribute 4, 5" } } */
5 
6 /* Check that if we can do the long double operation without doing an emulator
7    call, such as with copysign, that we still set the appropriate
8    .gnu_attribute.  */
9 
10 long double a, b, c;
11 
cs(void)12 void cs (void)
13 {
14   a = __builtin_copysignl (b, c);
15 }
16