diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 10:55:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-07 10:55:02 -0700 |
commit | 135a20cd110d356d5d098a08a7b447205adaed7a (patch) | |
tree | f5200a6b35f19d1bf95dea1fa7e339f40391413b /test/min.fromasm.imprecise.no-opts | |
parent | fbe77b167002e8a49225b607ca8c37dc7e4b41fe (diff) | |
parent | dd197d3212ac28e778d372df9d03e58b21386648 (diff) | |
download | binaryen-135a20cd110d356d5d098a08a7b447205adaed7a.tar.gz binaryen-135a20cd110d356d5d098a08a7b447205adaed7a.tar.bz2 binaryen-135a20cd110d356d5d098a08a7b447205adaed7a.zip |
Merge pull request #678 from WebAssembly/stack
Stack machine + 0xc update
Diffstat (limited to 'test/min.fromasm.imprecise.no-opts')
-rw-r--r-- | test/min.fromasm.imprecise.no-opts | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/test/min.fromasm.imprecise.no-opts b/test/min.fromasm.imprecise.no-opts index 4e90b3f34..dd89a9eed 100644 --- a/test/min.fromasm.imprecise.no-opts +++ b/test/min.fromasm.imprecise.no-opts @@ -1,7 +1,11 @@ (module (memory 256 256) - (export "memory" memory) - (export "floats" $floats) + (import "env" "tempDoublePtr" (global $tDP i32)) + (import "env" "memory" (memory $memory)) + (import "env" "table" (table $table)) + (import "env" "memoryBase" (global $memoryBase i32)) + (import "env" "tableBase" (global $tableBase i32)) + (export "floats" (func $floats)) (func $floats (param $f f32) (result f32) (local $t f32) (return @@ -31,16 +35,22 @@ ) ) (func $bitcasts (param $i i32) (param $f f32) - (f32.reinterpret/i32 - (get_local $i) - ) - (f64.promote/f32 + (drop (f32.reinterpret/i32 (get_local $i) ) ) - (i32.reinterpret/f32 - (get_local $f) + (drop + (f64.promote/f32 + (f32.reinterpret/i32 + (get_local $i) + ) + ) + ) + (drop + (i32.reinterpret/f32 + (get_local $f) + ) ) ) (func $ctzzzz (result i32) |