OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-ldstruct.c] - Rev 816

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do run { target powerpc*-*-eabi* powerpc*-*-elf* powerpc*-*-linux* } } */
/* { dg-options "-O -mlong-double-128" } */
 
#include <stdlib.h>
 
/* SVR4 and EABI both specify that 'long double' is aligned to a 128-bit
   boundary in structures.  */
 
struct {
  int x;
  long double d;
} s;
 
int main(void)
{
  if (sizeof (s) != 32)
    abort ();
  if ((char *)&s.d - (char *)&s != 16)
    abort ();
  exit (0);
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.