Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / stringop-1.c
blob0f477b2376c06f672d583a2b87e4c7b0eedfb19d
1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-tree-tree_profile" } */
2 int a[1000];
3 int b[1000];
4 int size=1;
5 int max=10000;
6 main()
8 int i;
9 for (i=0;i<max; i++)
11 __builtin_memcpy (a, b, size * sizeof (a[0]));
12 asm("");
14 return 0;
16 /* { dg-final-use { scan-tree-dump "Single value 4 stringop" "tree_profile"} } */
17 /* Really this ought to simplify into assignment, but we are not there yet. */
18 /* a[0] = b[0] is what we fold the resulting memcpy into. */
19 /* { dg-final-use { scan-tree-dump " = MEM.*&b" "optimized"} } */
20 /* { dg-final-use { scan-tree-dump "MEM.*&a\\\] = " "optimized"} } */
21 /* { dg-final-use { cleanup-tree-dump "optimized" } } */
22 /* { dg-final-use { cleanup-tree-dump "tree_profile" } } */