diff options
author | Thomas Lively <tlively@users.noreply.github.com> | 2017-08-07 13:42:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2017-08-07 13:42:49 -0700 |
commit | 62f6a12c4fa109522229526e9d89969d2fde7399 (patch) | |
tree | fa2023676c4e698d98c25d409556d9bbb08a89b9 /src/asmjs/shared-constants.cpp | |
parent | ffd9a72d28d36915fb173a6d52fbb6e43f7c15db (diff) | |
download | binaryen-62f6a12c4fa109522229526e9d89969d2fde7399.tar.gz binaryen-62f6a12c4fa109522229526e9d89969d2fde7399.tar.bz2 binaryen-62f6a12c4fa109522229526e9d89969d2fde7399.zip |
wasm2asm i32 arithmetic support (#1120)
* Rotations, popcnt, ctz, etc
Diffstat (limited to 'src/asmjs/shared-constants.cpp')
-rw-r--r-- | src/asmjs/shared-constants.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp index 7e153bada..b355fecb7 100644 --- a/src/asmjs/shared-constants.cpp +++ b/src/asmjs/shared-constants.cpp @@ -58,15 +58,20 @@ cashew::IString GLOBAL("global"), ENV("env"), INSTRUMENT("instrument"), MATH_IMUL("Math_imul"), - MATH_CLZ32("Math_clz32"), - MATH_POPCNT32("Math_popcnt32"), MATH_ABS("Math_abs"), MATH_CEIL("Math_ceil"), MATH_FLOOR("Math_floor"), MATH_TRUNC("Math_trunc"), MATH_NEAREST("Math_NEAREST"), MATH_SQRT("Math_sqrt"), - MATH_MIN("Math_max"), - MATH_MAX("Math_min"); - + MATH_MIN("Math_min"), + MATH_MAX("Math_max"), + CTZ32("__wasm_ctz_i32"), + CTZ64("__wasm_ctz_i64"), + POPCNT32("__wasm_popcnt_i32"), + POPCNT64("__wasm_popcnt_i64"), + ROTL32("__wasm_rotl_i32"), + ROTL64("__wasm_rotl_i64"), + ROTR32("__wasm_rotr_i32"), + ROTR64("__wasm_rotr_i64"); } |