]>
Commit | Line | Data |
---|---|---|
24c49431 | 1 | /* { dg-do compile } */ |
9638e3ef DE |
2 | /* { dg-options "-Ofast -fdump-tree-recip" } */ |
3 | /* { dg-additional-options "-fcompare-debug" { target { ! powerpc-ibm-aix* } } } */ | |
24c49431 KT |
4 | |
5 | double res, res2, tmp; | |
6 | void | |
7 | foo (double a, double b) | |
8 | { | |
9 | tmp = 1.0 / __builtin_sqrt (a); | |
10 | res = tmp * tmp; | |
11 | res2 = a * tmp; | |
12 | } | |
13 | ||
14 | /* { dg-final { scan-tree-dump "Optimizing reciprocal sqrt multiplications" "recip" } } */ | |
15 | /* { dg-final { scan-tree-dump "Replacing squaring multiplication" "recip" } } */ | |
16 | /* { dg-final { scan-tree-dump "Replacing original division" "recip" } } */ |