diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-07 16:45:39 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-07 16:45:39 -0800 |
commit | 465a85fb977fd569f8f04cbc117f68d894b77a66 (patch) | |
tree | 829b7dc2dc9b8e4458e3c58fbcf5bad1b037d84a | |
parent | 246bf84adcba84abc96cc6910ca4b5a0898d6c46 (diff) | |
download | binaryen-465a85fb977fd569f8f04cbc117f68d894b77a66.tar.gz binaryen-465a85fb977fd569f8f04cbc117f68d894b77a66.tar.bz2 binaryen-465a85fb977fd569f8f04cbc117f68d894b77a66.zip |
import Math.clz32
-rw-r--r-- | src/wasm2asm.h | 1 | ||||
-rw-r--r-- | test/emcc_O2_hello_world.2asm.js | 1 | ||||
-rw-r--r-- | test/hello_world.2asm.js | 1 | ||||
-rw-r--r-- | test/min.2asm.js | 1 | ||||
-rw-r--r-- | test/unit.2asm.js | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h index 1898da415..d1a0bf865 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -248,6 +248,7 @@ void Wasm2AsmBuilder::addBasics(Ref ast) { addMath(MATH_IMUL, IMUL); addMath(MATH_FROUND, FROUND); addMath(MATH_ABS, ABS); + addMath(MATH_CLZ32, CLZ32); } void Wasm2AsmBuilder::addImport(Ref ast, Import *import) { diff --git a/test/emcc_O2_hello_world.2asm.js b/test/emcc_O2_hello_world.2asm.js index a6c665d01..94ec31957 100644 --- a/test/emcc_O2_hello_world.2asm.js +++ b/test/emcc_O2_hello_world.2asm.js @@ -11,6 +11,7 @@ function asmFunc(global, env, buffer) { var Math_imul = global.Math.imul; var Math_fround = global.Math.fround; var Math_abs = global.Math.abs; + var Math_clz32 = global.Math.clz32; var abort = env.abort; var _pthread_cleanup_pop = env._pthread_cleanup_pop; var _pthread_self = env._pthread_self; diff --git a/test/hello_world.2asm.js b/test/hello_world.2asm.js index ba054a28e..c11126e24 100644 --- a/test/hello_world.2asm.js +++ b/test/hello_world.2asm.js @@ -11,6 +11,7 @@ function asmFunc(global, env, buffer) { var Math_imul = global.Math.imul; var Math_fround = global.Math.fround; var Math_abs = global.Math.abs; + var Math_clz32 = global.Math.clz32; function add(x, y) { x = x | 0; y = y | 0; diff --git a/test/min.2asm.js b/test/min.2asm.js index b8865aa81..2da358f1a 100644 --- a/test/min.2asm.js +++ b/test/min.2asm.js @@ -11,6 +11,7 @@ function asmFunc(global, env, buffer) { var Math_imul = global.Math.imul; var Math_fround = global.Math.fround; var Math_abs = global.Math.abs; + var Math_clz32 = global.Math.clz32; function floats(f) { f = Math_fround(f); var t = Math_fround(0); diff --git a/test/unit.2asm.js b/test/unit.2asm.js index 8e90926b0..5b31e589a 100644 --- a/test/unit.2asm.js +++ b/test/unit.2asm.js @@ -11,6 +11,7 @@ function asmFunc(global, env, buffer) { var Math_imul = global.Math.imul; var Math_fround = global.Math.fround; var Math_abs = global.Math.abs; + var Math_clz32 = global.Math.clz32; var f64_to_int = env.f64_to_int; var f64_rem = env.f64_rem; function big_negative() { |