You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
345 B
12 lines
345 B
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
|