1 /* { dg-do compile } */
2 /* { dg-options "-O2 -freciprocal-math -fdump-tree-original" } */
3
do_div(_Complex double * a,_Complex double * b)4 void do_div (_Complex double *a, _Complex double *b)
5 {
6 *a = *b / (4.0 - 5.0fi);
7 }
8
9 /* Constant folding should multiply *b by the reciprocal of 4 - 5i
10 = 4/41 + (5/41)i. */
11
12 /* { dg-final { scan-tree-dump-times " \\\* " 1 "original" } } */
13 /* { dg-final { scan-tree-dump-times " / " 0 "original" } } */
14 /* { dg-final { cleanup-tree-dump "original" } } */
15