diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/recip-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/recip-2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/recip-2.c b/gcc/testsuite/gcc.dg/tree-ssa/recip-2.c index 7d0e97ae371..af628053ad5 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/recip-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/recip-2.c @@ -10,14 +10,19 @@ float e(float a, float b, float c, float d, float e, float f) } /* The PHI nodes for these divisions should be combined. */ + d = d / a; e = e / a; f = f / a; a = a / c; b = b / c; - return a + b + e + f; + /* This should not be left as a multiplication. */ + c = 1 / c; + + return a + b + c + d + e + f; } /* { dg-final { scan-tree-dump-times " / " 2 "recip" } } */ +/* { dg-final { scan-tree-dump-times " \\* " 5 "recip" } } */ /* { dg-final { cleanup-tree-dump "recip" } } */ |