aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/gnuattr1.c
blob: 6749a09c0c21b303574fe6a55801da832d419951 (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 -mlong-double-64" } */
/* { dg-require-effective-target powerpc_vsx } */
/* { dg-final { scan-assembler "gnu_attribute 4, 9" } } */

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

long double a;

void add1 (void)
{
  a++;
}