summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr23434.c
blob: e57f6f6a4260972f71b926c07387d5a4e159992e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2" } */

void
cblas_csyr2k (int N, void *A, int lda, float *B, int ldb, float *C, int k)
{
  int i, j;
  for (;; k ++)
    {
      for (i = 0; i < N; i ++)
	{
	  float t = ((float * ) A) [i];
	  for (j = i; j < N; j ++)
	    {
	      C [i + j] = B [ldb] * ((float *) A) [k];
	      C [lda] = 0 ;
	    }
	}
    }
}