1/* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* } } */ 2/* { dg-options "-O -mlong-double-128" } */ 3 4#include <stdlib.h> 5 6/* SVR4 and EABI both specify that 'long double' is aligned to a 128-bit 7 boundary in structures. */ 8 9struct { 10 int x; 11 long double d; 12} s; 13 14int main(void) 15{ 16 if (sizeof (s) != 32) 17 abort (); 18 if ((char *)&s.d - (char *)&s != 16) 19 abort (); 20 exit (0); 21} 22