diff options
Diffstat (limited to 'tools/eliminator')
-rw-r--r-- | tools/eliminator/asm-eliminator-test-output.js | 8 | ||||
-rw-r--r-- | tools/eliminator/asm-eliminator-test.js | 11 | ||||
-rw-r--r-- | tools/eliminator/eliminator-test.js | 2 |
3 files changed, 20 insertions, 1 deletions
diff --git a/tools/eliminator/asm-eliminator-test-output.js b/tools/eliminator/asm-eliminator-test-output.js new file mode 100644 index 00000000..228915d4 --- /dev/null +++ b/tools/eliminator/asm-eliminator-test-output.js @@ -0,0 +1,8 @@ +function asm(x, y) { + x = +x; + y = y | 0; + var a = 0; + a = cheez(y + ~~x | 0) | 0; + fleefl(a * a | 0, a | 0); +} + diff --git a/tools/eliminator/asm-eliminator-test.js b/tools/eliminator/asm-eliminator-test.js new file mode 100644 index 00000000..d845b989 --- /dev/null +++ b/tools/eliminator/asm-eliminator-test.js @@ -0,0 +1,11 @@ +function asm(x, y) { + x = +x; + y = y|0; + var a = 0, b = +0, c = 0; + var label = 0; + a = cheez((y+~~x)|0)|0; + b = a*a; + fleefl(b|0, a|0); +} +// EMSCRIPTEN_GENERATED_FUNCTIONS: ["a", "b", "c", "f", "g", "h", "py", "r", "t", "f2", "f3", "llvm3_1", "_inflate", "_malloc", "_mallocNoU", "asm"] + diff --git a/tools/eliminator/eliminator-test.js b/tools/eliminator/eliminator-test.js index d7982130..07a41d71 100644 --- a/tools/eliminator/eliminator-test.js +++ b/tools/eliminator/eliminator-test.js @@ -8828,7 +8828,7 @@ function _mallocNoU($bytes) { return $mem_0; return null; } -function asm(x, y) { +function asm(x, y) { // asm-style code, without special asm requested so will not be fully optimized x = +x; y = y|0; var a = 0, b = +0, c = 0; |