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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [sw-1.c] - Blame information for rev 762

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fshrink-wrap -fdump-rtl-pro_and_epilogue" } */
3
/* { dg-skip-if "No shrink-wrapping preformed" { x86_64-*-mingw* } { "*" } { "" } } */
4
 
5
#include <string.h>
6
 
7
int c;
8
int x[2000];
9
__attribute__((regparm(1))) void foo (int a, int b)
10
 {
11
   int t[200];
12
   if (a == 0 || c == 0)
13
     return;
14
   memcpy (t, x + b, sizeof t);
15
   c = t[a];
16
 }
17
 
18
/* { dg-final { scan-rtl-dump "Performing shrink-wrapping" "pro_and_epilogue" } } */
19
/* { dg-final { cleanup-rtl-dump "pro_and_epilogue" } } */

powered by: WebSVN 2.1.0

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