diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-12-23 15:43:01 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-12-23 15:43:01 -0800 |
commit | b86abc2ecfea9ccbb93cad2fe4e9f8574beb7ed8 (patch) | |
tree | e966f2fd2bc38d15c18fa880098ba5c8b91f07eb /tools/eliminator/eliminator-test-output.js | |
parent | 9b3e1b8d8e948709a9df1a23ea8790c93eb5b82e (diff) |
fix bug where close-together tempDoublePtr operations could cross each other
Diffstat (limited to 'tools/eliminator/eliminator-test-output.js')
-rw-r--r-- | tools/eliminator/eliminator-test-output.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/eliminator/eliminator-test-output.js b/tools/eliminator/eliminator-test-output.js index 0171e99b..4551fb34 100644 --- a/tools/eliminator/eliminator-test-output.js +++ b/tools/eliminator/eliminator-test-output.js @@ -6122,4 +6122,15 @@ function intoCond() { function math(a, b, c, d) { print(Math_imul(d) + (Math_fround(c) + (a + Math_abs(b)))); } +function td(x, y) { + HEAP32[tempDoublePtr >> 2] = x; + var xf = HEAPF32[tempDoublePtr >> 2]; + HEAP32[tempDoublePtr >> 2] = y; + func(xf, HEAPF32[tempDoublePtr >> 2]); + HEAPF64[tempDoublePtr >> 3] = x; + var xl = HEAP32[tempDoublePtr >> 2]; + var xh = HEAP32[tempDoublePtr >> 2]; + HEAPF64[tempDoublePtr >> 3] = y; + func(xl, xh, HEAP32[tempDoublePtr >> 2], HEAP32[tempDoublePtr >> 2]); +} |