OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-ldstruct.c] - Blame information for rev 322

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 322 jeremybenn
/* { 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
 
9
struct {
10
  int x;
11
  long double d;
12
} s;
13
 
14
int main(void)
15
{
16
  if (sizeof (s) != 32)
17
    abort ();
18
  if ((char *)&s.d - (char *)&s != 16)
19
    abort ();
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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