summaryrefslogtreecommitdiffstats
path: root/test/474-fp-sub-neg/info.txt
blob: 82effdb45e1e62f5753a8abb8ea1f6b9e1cde8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
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