Skip to content

Commit e97deec

Browse files
committed
Add Mozilla division bug
1 parent 2be6cb8 commit e97deec

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/native_math_bugs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@
4343
* [WebKit 32-bit Math bug][@bug:webkit:40367]
4444
* [Mozilla optimizations break commutativity][@bug:mozilla:969203]
4545
* [Mozilla debate on speed versus precision][@bug:mozilla:967709]
46+
* [Mozilla division bug to due C library delegation][@bug:mozilla:948321]
4647

4748

48-
* [Division bug to due C library delegation][29]
4949
* [Fixit to unify Math implementations in Chrome][30]
5050
* [Fixit to unify Math.pow implementation in Chrome][31]
5151

@@ -100,14 +100,14 @@
100100
[@bug:webkit:40367]: https://bugs.webkit.org/show_bug.cgi?id=40367
101101
[@bug:mozilla:969203]: https://bugzilla.mozilla.org/show_bug.cgi?id=969203#c8
102102
[@bug:mozilla:967709]: https://bugzilla.mozilla.org/show_bug.cgi?id=967709
103+
[@bug:mozilla:948321]: https://bugzilla.mozilla.org/show_bug.cgi?id=948321
103104

104105

105106
[v8-issue-tracker]: https://bugs.chromium.org/p/v8/issues/list?can=1&q=math&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Component%20Stars&num=100&start=100
106107
[webkit-issue-tracker]: https://bugs.webkit.org/buglist.cgi?quicksearch=math
107108
[mozilla-issue-tracker]: https://bugzilla.mozilla.org/buglist.cgi?quicksearch=math
108109

109110

110-
[29]: https://bugzilla.mozilla.org/show_bug.cgi?id=948321
111111
[30]: https://bugs.chromium.org/p/v8/issues/detail?id=5086
112112
[31]: https://bugs.chromium.org/p/v8/issues/detail?id=5157
113113

docs/references/bugs.bib

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,3 +344,12 @@ @misc{bug:mozilla:967709
344344
year = {2014}
345345
}
346346

347+
@misc{bug:mozilla:948321,
348+
abstract = {fdiv is part of the x87 instruction set that's much older than SSE2/divsd. x87 has its own stack and is a pain to use compared to SSE; we try to avoid it as much as possible. We do use it for the fisttp instruction for instance because there's no SSE equivalent on x86. Unfortunately, fdiv uses 80-bit double-extended precision and divsd/SSE2 uses 64-bit double precision. That's probably causing the difference here. This sucks because it's not very easy to work around I'm afraid. For differential testing we could try to use a compiler switch so that it's free to emit SSE2+ instructions; maybe that will keep it from emitting fdiv, or maybe it won't.. Is this also a problem with 64-bit builds?},
349+
keywords = {math, firefox, mozilla, divide, division},
350+
notes = {},
351+
title = {{Differential Testing: Different division results on x86 platforms}},
352+
url = {https://bugzilla.mozilla.org/show_bug.cgi?id=948321},
353+
year = {2013}
354+
}
355+

0 commit comments

Comments
 (0)