PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sw-1.c
blobaec095eda62d653670d968055354bcb28db7b669
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mtune=generic -fshrink-wrap -fdump-rtl-pro_and_epilogue" } */
3 /* { dg-skip-if "No shrink-wrapping preformed" { x86_64-*-mingw* } } */
5 #include <string.h>
7 int c;
8 int x[2000];
9 __attribute__((regparm(1))) void foo (int a, int b)
11 int t[200];
12 if (a == 0 || c == 0)
13 return;
14 memcpy (t, x + b, sizeof t);
15 c = t[a];
18 /* { dg-final { scan-rtl-dump "Performing shrink-wrapping" "pro_and_epilogue" } } */