2014-08-04 Ed Schonberg <schonberg@adacore.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr44214-2.c
blob7e8581a2bb38bfe255db18735c3cd0167a075d28
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -freciprocal-math -fdump-tree-original" } */
4 void do_div (_Complex double *a, _Complex double *b)
6 *a = *b / (4.0 - 5.0fi);
9 /* Constant folding should multiply *b by the reciprocal of 4 - 5i
10 = 4/41 + (5/41)i. */
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" } } */