aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-prof/pr77698.c
blob: 201bfc7ee20f65abd44f0393a120e7256b73f0b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-options "-O2 -fno-tree-vectorize -funroll-loops --param max-unroll-times=4 -fno-inline -fdump-rtl-alignments" } */

volatile long int g;
volatile long int j = 0;

void foo(long int *a, long int *b, long int n)
{
  long int i;

  for (i = 0; i < n; i++)
    a[j] = *b;
}

long int a, b;
int main()
{
  a = 1; b = 2;
  foo(&a, &b, 1000000);
  g = a+b;
  return 0;
}

/* { dg-final-use-not-autofdo { scan-rtl-dump-times "internal loop alignment added" 1 "alignments"} } */