diff options
author | Alon Zakai <alonzakai@gmail.com> | 2019-03-06 16:02:34 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-06 16:02:34 -0800 |
commit | 8b5b85463cd5f5fcfec4d0bc6acb52f2acb30d79 (patch) | |
tree | d568a0b58e4d04d7d725aff1e573205bef2a00a9 /test/passes/fpcast-emu.wast | |
parent | 6657500c924bdd40c8abf8c6a9655654b9342eca (diff) | |
download | binaryen-8b5b85463cd5f5fcfec4d0bc6acb52f2acb30d79.tar.gz binaryen-8b5b85463cd5f5fcfec4d0bc6acb52f2acb30d79.tar.bz2 binaryen-8b5b85463cd5f5fcfec4d0bc6acb52f2acb30d79.zip |
Don't create already-existing dynCalls (#1932)
This can happen in emscripten if we run fpcast-emu after previous passes created dynCalls already. If so, it's fine to just do nothing.
Fixes emscripten-core/emscripten#8229
Diffstat (limited to 'test/passes/fpcast-emu.wast')
-rw-r--r-- | test/passes/fpcast-emu.wast | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/passes/fpcast-emu.wast b/test/passes/fpcast-emu.wast index 1ea95b348..90af71d6f 100644 --- a/test/passes/fpcast-emu.wast +++ b/test/passes/fpcast-emu.wast @@ -67,4 +67,14 @@ ) ) ) +(module + (table 42 42 funcref) + (elem (i32.const 0) $a $b) + (export "dynCall_vf" (func $dynCall_vf)) + (export "dynCall_vd" (func $min_vd)) + (func $a (param $0 f32)) + (func $b (param $0 f64)) + (func $dynCall_vf (param $0 f32)) + (func $min_vd (param $0 f32)) +) |