* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / stringop-2.c
blob330b159b7fceff9836999353e31545d67ba7f6e3
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 #ifdef __mips
7 /* We allow short memcpy()s for MIPS16. */
8 int __attribute__((nomips16))
9 #else
10 int
11 #endif
12 main()
14 int i;
15 for (i=0;i<max; i++)
17 __builtin_memset (a, 10, size * sizeof (a[0]));
18 asm("");
20 return 0;
22 /* autofdo doesn't support value profiling for now: */
23 /* { dg-final-use-not-autofdo { scan-ipa-dump "Single value 4 stringop" "profile"} } */
24 /* The versioned memset of size 4 should be optimized to an assignment. */
25 /* { dg-final-use-not-autofdo { scan-tree-dump "MEM\\\[\\(void .\\)&a\\\] = 168430090" "optimized"} } */