diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-11-29 18:33:41 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-29 18:33:41 -0800 |
commit | 24d274983df9f7dbeebe8a890297d4f30d5bbca7 (patch) | |
tree | b76f10f6de34e94b8c0e449b18427daeb34bee0c /test/wasm2js/f32.2asm.js | |
parent | 8c97dc61a713768d7f8302ec3a695c1207ce7239 (diff) | |
download | binaryen-24d274983df9f7dbeebe8a890297d4f30d5bbca7.tar.gz binaryen-24d274983df9f7dbeebe8a890297d4f30d5bbca7.tar.bz2 binaryen-24d274983df9f7dbeebe8a890297d4f30d5bbca7.zip |
Update spec test suite (#2484)
This updates spec test suite to that of the current up-to-date version
of https://github.com/WebAssembly/spec repo.
- All failing tests are added in `BLACKLIST` in shared.py with reasons.
- For tests that already existed and was passing and started failing
after the update, we add the new test to the blacklist and preserve
the old file by renaming it to 'old_[FILENAME].wast' not to lose test
coverage. When the cause of the error is fixed or the unsupported
construct gets support so the new test passes, we can delete the
corresponding 'old_[FILENAME].wast' file.
- Adds support for `spectest.print_[type] style imports.
Diffstat (limited to 'test/wasm2js/f32.2asm.js')
-rw-r--r-- | test/wasm2js/f32.2asm.js | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/test/wasm2js/f32.2asm.js b/test/wasm2js/f32.2asm.js index 80c8f8d24..20683a5f8 100644 --- a/test/wasm2js/f32.2asm.js +++ b/test/wasm2js/f32.2asm.js @@ -1,26 +1,4 @@ - - var scratchBuffer = new ArrayBuffer(8); - var i32ScratchView = new Int32Array(scratchBuffer); - var f32ScratchView = new Float32Array(scratchBuffer); - var f64ScratchView = new Float64Array(scratchBuffer); - - function wasm2js_scratch_store_i32(index, value) { - i32ScratchView[index] = value; - } - - function wasm2js_scratch_load_f32() { - return f32ScratchView[0]; - } - - function wasm2js_scratch_store_f32(value) { - f32ScratchView[0] = value; - } - - function wasm2js_scratch_load_i32(index) { - return i32ScratchView[index]; - } - function asmFunc(global, env, buffer) { var HEAP8 = new global.Int8Array(buffer); var HEAP16 = new global.Int16Array(buffer); @@ -103,22 +81,6 @@ function asmFunc(global, env, buffer) { return Math_fround(Math_fround(__wasm_nearest_f32(Math_fround(x)))); } - function $11(x) { - x = Math_fround(x); - return Math_fround(Math_fround(Math_abs(x))); - } - - function $12(x) { - x = Math_fround(x); - return Math_fround(Math_fround(-x)); - } - - function $13(x, y) { - x = Math_fround(x); - y = Math_fround(y); - return Math_fround((wasm2js_scratch_store_i32(0, (wasm2js_scratch_store_f32(x), wasm2js_scratch_load_i32(0)) & 2147483647 | 0 | ((wasm2js_scratch_store_f32(y), wasm2js_scratch_load_i32(0)) & -2147483648 | 0) | 0), wasm2js_scratch_load_f32())); - } - function __wasm_nearest_f32(var$0) { var$0 = Math_fround(var$0); var var$1 = Math_fround(0), var$2 = Math_fround(0); @@ -154,10 +116,7 @@ function asmFunc(global, env, buffer) { "ceil": $7, "floor": $8, "trunc": $9, - "nearest": $10, - "abs": $11, - "neg": $12, - "copysign": $13 + "nearest": $10 }; } @@ -174,6 +133,3 @@ export var ceil = retasmFunc.ceil; export var floor = retasmFunc.floor; export var trunc = retasmFunc.trunc; export var nearest = retasmFunc.nearest; -export var abs = retasmFunc.abs; -export var neg = retasmFunc.neg; -export var copysign = retasmFunc.copysign; |