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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [torture/] [stackalign/] [unwind-3.C] - Blame information for rev 307

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
2
 
3
#include "test-unwind.h"
4
 
5
#if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__
6
/* Test situation 3: Stack realign really happen with DRAP reg DI */
7
void __attribute__ ((noinline)) __attribute__ ((regparm(3)))
8
bar (int arg1, int arg2, int arg3)
9
{
10
  int __attribute__ ((aligned(64))) a=1;
11
  char * s = (char *) __builtin_alloca (arg3 + 1);
12
 
13
  copy (s, arg3);
14
  if (__builtin_strncmp (s, "good", arg3) != 0)
15
    {
16
#ifdef DEBUG
17
      s[arg3] = '\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 arg1+arg2+arg3+a;
28
}
29
 
30
void
31
foo()
32
{
33
  bar (1,2,3);
34
}
35
#endif

powered by: WebSVN 2.1.0

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