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] - Rev 704
Go to most recent revision | Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -fshrink-wrap -fdump-rtl-pro_and_epilogue" } */ /* { dg-skip-if "No shrink-wrapping preformed" { x86_64-*-mingw* } { "*" } { "" } } */ #include <string.h> int c; int x[2000]; __attribute__((regparm(1))) void foo (int a, int b) { int t[200]; if (a == 0 || c == 0) return; memcpy (t, x + b, sizeof t); c = t[a]; } /* { dg-final { scan-rtl-dump "Performing shrink-wrapping" "pro_and_epilogue" } } */ /* { dg-final { cleanup-rtl-dump "pro_and_epilogue" } } */
Go to most recent revision | Compare with Previous | Blame | View Log