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/] [gcc.dg/] [tree-ssa/] [pr23848-4.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR middle-end/23848 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
 
5
void bar (char *, char *, char *, char *, int);
6
void foo (int size)
7
{
8
  char temp[size];
9
  temp[size-1] = '\0';
10
  {
11
    char temp2[size];
12
    {
13
      char temp3[size];
14
      {
15
        char temp4[size];
16
        bar (temp, temp2, temp3, temp4, size);
17
      }
18
    }
19
    __asm __volatile ("" : : "r" (&temp[0]), "r" (&temp2[0]) : "memory");
20
  }
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "__builtin_stack_save" 1 "optimized"} } */
24
/* { dg-final { scan-tree-dump-times "__builtin_stack_restore" 1 "optimized"} } */
25
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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