diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-09 13:22:24 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-09 13:22:24 -0400 |
commit | 028a3210fc61df40fae2854be6ad8b65e49ba633 (patch) | |
tree | 7ca87e0f4137cc520ffb6b7c7359adfec8380780 /tools/test-js-optimizer-asm-minlast.js | |
parent | e10ee6c5cb0aa89bbae465a1e667a03c0e13aa39 (diff) |
avoid X-(-Y) in js optimizer; fixes #1685
Diffstat (limited to 'tools/test-js-optimizer-asm-minlast.js')
-rw-r--r-- | tools/test-js-optimizer-asm-minlast.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-minlast.js b/tools/test-js-optimizer-asm-minlast.js new file mode 100644 index 00000000..6d172899 --- /dev/null +++ b/tools/test-js-optimizer-asm-minlast.js @@ -0,0 +1,8 @@ +function test($34) { + var $35 = 0; + $35=($34)-((+-130)); + $35=($34)-(-130); + return $35 | 0; +} +// EMSCRIPTEN_GENERATED_FUNCTIONS: ["test"] + |