blob: 82effdb45e1e62f5753a8abb8ea1f6b9e1cde8c8 [file] [log] [blame]
Regression check for optimizing simplify instruction pass.
A pair (sub, neg) should not be transforemd to (sub) for
fp calculation because we can lose the sign of zero for
the following expression:
- ( A - B ) != B - A ; if B == A
Addition or subtraction with fp zero should not be eliminated
because:
-0.0 + 0.0 = 0.0
-0.0 - -0.0 = 0.0