[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-ldstruct.c
blobffb4264773fdf9b54ab4a7646b92cb0da1fe44cd
1 /* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* powerpc*-*-rtems* } } */
2 /* { dg-options "-O -mlong-double-128" } */
4 #include <stdlib.h>
6 /* SVR4 and EABI both specify that 'long double' is aligned to a 128-bit
7 boundary in structures. */
9 struct {
10 int x;
11 long double d;
12 } s;
14 int main(void)
16 if (sizeof (s) != 32)
17 abort ();
18 if ((char *)&s.d - (char *)&s != 16)
19 abort ();
20 exit (0);