blob: 0931f6e71c3629ea9fd520688977e45b6e694443 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details -fdisable-tree-thread2 -fdisable-tree-thread3" } */
void foo (float **a, float **b, float *c, int n, int m, int l)
{
int i,j,k;
float s;
for (i=0; i<l; i++)
for (j=0; j<n; j++)
for (k=0; k<m; k++)
c[i] += a[i][k] * b[k][j];
}
/* { dg-final { scan-tree-dump-times "guard hoisted" 3 "unswitch" } } */
/* { dg-final { scan-tree-dump-not "Invalid sum" "unswitch" } } */