mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Check for divide by zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec0e5475fd
commit
3df9f541a0
@ -105,8 +105,8 @@ def diffResults(d_old, d_new):
|
||||
elif not math.isnan(d_old[t][x]) and math.isnan(d_new[t][x]):
|
||||
print t + " *** REGRESSION (" + x + ")"
|
||||
|
||||
if d_new[t][x] > d_old[t][x] and \
|
||||
(d_new[t][x] - d_old[t][x]) / d_new[t][x] > .05:
|
||||
if d_new[t][x] > d_old[t][x] and d_old[t][x] > 0.0 and \
|
||||
(d_new[t][x] - d_old[t][x]) / d_old[t][x] > .05:
|
||||
print t + " *** REGRESSION (" + x + ")"
|
||||
|
||||
else :
|
||||
|
Loading…
Reference in New Issue
Block a user