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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [stackalign/] [unwind-2.C] - Blame information for rev 715

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
2
 
3
#include "test-unwind.h"
4
 
5
#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
6
/* Test situation 2: stack really realign with DRAP reg CX */
7
void __attribute__ ((noinline))
8
foo ()
9
{
10
  int __attribute__ ((aligned(64))) a=4;
11
  char * s = (char *) __builtin_alloca (a + 1);
12
 
13
  copy (s, a);
14
  if (__builtin_strncmp (s, "good", a) != 0)
15
    {
16
#ifdef DEBUG
17
      s[a] = '\0';
18
      printf ("Failed: %s != good\n", s);
19
#endif
20
      abort ();
21
    }
22
 
23
  if (check_int (&a,  __alignof__(a)) != a)
24
    abort ();
25
 
26
  ALTER_REGS();
27
  throw a;
28
}
29
#endif

powered by: WebSVN 2.1.0

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