PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / loop-unswitch-2.c
blobf8d314e34de28714325646ebe356596ad1cc7dea
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */
4 void foo (float **a, float **b, float *c, int n, int m, int l)
6 int i,j,k;
7 float s;
8 for (i=0; i<l; i++)
9 for (j=0; j<n; j++)
10 for (k=0; k<m; k++)
11 c[i] += a[i][k] * b[k][j];
14 /* { dg-final { scan-tree-dump-times "guard hoisted" 3 "unswitch" } } */
15 /* { dg-final { scan-tree-dump-not "Invalid sum" "unswitch" } } */