diff options
Diffstat (limited to 'test/wasm2js/i32.2asm.js')
-rw-r--r-- | test/wasm2js/i32.2asm.js | 56 |
1 files changed, 35 insertions, 21 deletions
diff --git a/test/wasm2js/i32.2asm.js b/test/wasm2js/i32.2asm.js index 691ff7bb2..62a4387a9 100644 --- a/test/wasm2js/i32.2asm.js +++ b/test/wasm2js/i32.2asm.js @@ -117,64 +117,74 @@ function asmFunc(imports) { function $18(x) { x = x | 0; + return x << 24 >> 24 | 0; + } + + function $19(x) { + x = x | 0; + return x << 16 >> 16 | 0; + } + + function $20(x) { + x = x | 0; return !x | 0; } - function $19(x, y) { + function $21(x, y) { x = x | 0; y = y | 0; return (x | 0) == (y | 0) | 0; } - function $20(x, y) { + function $22(x, y) { x = x | 0; y = y | 0; return (x | 0) != (y | 0) | 0; } - function $21(x, y) { + function $23(x, y) { x = x | 0; y = y | 0; return (x | 0) < (y | 0) | 0; } - function $22(x, y) { + function $24(x, y) { x = x | 0; y = y | 0; return x >>> 0 < y >>> 0 | 0; } - function $23(x, y) { + function $25(x, y) { x = x | 0; y = y | 0; return (x | 0) <= (y | 0) | 0; } - function $24(x, y) { + function $26(x, y) { x = x | 0; y = y | 0; return x >>> 0 <= y >>> 0 | 0; } - function $25(x, y) { + function $27(x, y) { x = x | 0; y = y | 0; return (x | 0) > (y | 0) | 0; } - function $26(x, y) { + function $28(x, y) { x = x | 0; y = y | 0; return x >>> 0 > y >>> 0 | 0; } - function $27(x, y) { + function $29(x, y) { x = x | 0; y = y | 0; return (x | 0) >= (y | 0) | 0; } - function $28(x, y) { + function $30(x, y) { x = x | 0; y = y | 0; return x >>> 0 >= y >>> 0 | 0; @@ -242,17 +252,19 @@ function asmFunc(imports) { "clz": $15, "ctz": $16, "popcnt": $17, - "eqz": $18, - "eq": $19, - "ne": $20, - "lt_s": $21, - "lt_u": $22, - "le_s": $23, - "le_u": $24, - "gt_s": $25, - "gt_u": $26, - "ge_s": $27, - "ge_u": $28 + "extend8_s": $18, + "extend16_s": $19, + "eqz": $20, + "eq": $21, + "ne": $22, + "lt_s": $23, + "lt_u": $24, + "le_s": $25, + "le_u": $26, + "gt_s": $27, + "gt_u": $28, + "ge_s": $29, + "ge_u": $30 }; } @@ -276,6 +288,8 @@ export var rotr = retasmFunc.rotr; export var clz = retasmFunc.clz; export var ctz = retasmFunc.ctz; export var popcnt = retasmFunc.popcnt; +export var extend8_s = retasmFunc.extend8_s; +export var extend16_s = retasmFunc.extend16_s; export var eqz = retasmFunc.eqz; export var eq = retasmFunc.eq; export var ne = retasmFunc.ne; |