27 lines
525 B
C
27 lines
525 B
C
/* { dg-options "-O2 -fdump-tree-tree_profile -mtune=core2" } */
|
|
/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } { "*" } { "" } } */
|
|
|
|
#include <strings.h>
|
|
|
|
int foo(int len)
|
|
{
|
|
char array[1000];
|
|
bzero(array, len);
|
|
return 0;
|
|
}
|
|
|
|
int main() {
|
|
int i;
|
|
for (i = 0; i < 1000; i++)
|
|
{
|
|
if (i > 990)
|
|
foo(16);
|
|
else
|
|
foo(8);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* { dg-final-use { scan-tree-dump "Single value 8 stringop transformation on bzero" "tree_profile"} } */
|
|
/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */
|