summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cse_recip.c
blob: 49216620a73bdccb3c905d738c238413e46fffc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-Ofast -fdump-tree-optimized-raw -fno-tree-slp-vectorize" } */

void
cse_recip (float x, float y, float *a)
{
  a[0] = y / (5 * x);
  a[1] = y / (3 * x);
  a[2] = y / x;
}

/* { dg-final { scan-tree-dump-times "rdiv_expr" 1 "optimized" } } */