Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/gnuattr3.c

raw
1 /* { dg-do compile { target { powerpc*-linux-* } } } */
2 /* { dg-options "-O2 -mvsx -mabi=ibmlongdouble -Wno-psabi" } */
3 /* { dg-require-effective-target powerpc_vsx } */
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
12 void cs (void)
13 {
14 a = __builtin_copysignl (b, c);
15 }