Pass name cleanups
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / stringop-2.c
blobd5c58561be24a4606d755f60969072809b288f18
1 /* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-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_memset (a, 10, size * sizeof (a[0]));
12 asm("");
14 return 0;
16 /* { dg-final-use { scan-ipa-dump "Single value 4 stringop" "profile"} } */
17 /* The versioned memset of size 4 should be optimized to an assignment. */
18 /* { dg-final-use { scan-tree-dump "a\\\[0\\\] = 168430090" "optimized"} } */
19 /* { dg-final-use { cleanup-tree-dump "optimized" } } */
20 /* { dg-final-use { cleanup-ipa-dump "profile" } } */