[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / gnuattr1.c
blobcf46777849a213523665555f092d3ef269607820
1 /* { dg-do compile { target { powerpc*-linux-* } } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-options "-O2 -mvsx -mlong-double-64" } */
4 /* { dg-final { scan-assembler "gnu_attribute 4, 9" } } */
6 /* Check that if we can do the long double operation without doing an emulator
7 call, such as with 64-bit long double support, that we still set the
8 appropriate .gnu_attribute. */
10 long double a;
12 void add1 (void)
14 a++;