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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-ldstruct.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 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.