blob: 82effdb45e1e62f5753a8abb8ea1f6b9e1cde8c8 [file] [log] [blame]
Serguei Katkov339dfc22015-04-20 12:29:32 +06001Regression check for optimizing simplify instruction pass.
Serguei Katkov115b53f2015-08-05 17:03:30 +06002
Serguei Katkov339dfc22015-04-20 12:29:32 +06003A pair (sub, neg) should not be transforemd to (sub) for
4fp calculation because we can lose the sign of zero for
5the following expression:
6 - ( A - B ) != B - A ; if B == A
Serguei Katkov115b53f2015-08-05 17:03:30 +06007
8Addition or subtraction with fp zero should not be eliminated
9because:
10 -0.0 + 0.0 = 0.0
11 -0.0 - -0.0 = 0.0