diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-28 14:30:39 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-01 15:46:41 -0700 |
commit | bca89bde3e532e0632dd08c478cf5ca14645b2ed (patch) | |
tree | 01a2c5ab89301986836eb6d62846fb0bbdd9a4e7 /test/unit.fromasm.imprecise | |
parent | b22f29a4ee0858721278df7d9cea1a487bc7b543 (diff) | |
download | binaryen-bca89bde3e532e0632dd08c478cf5ca14645b2ed.tar.gz binaryen-bca89bde3e532e0632dd08c478cf5ca14645b2ed.tar.bz2 binaryen-bca89bde3e532e0632dd08c478cf5ca14645b2ed.zip |
add a test for bitcast patterns in asm2wasm
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r-- | test/unit.fromasm.imprecise | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise index ef9ccaa5d..96e22fc37 100644 --- a/test/unit.fromasm.imprecise +++ b/test/unit.fromasm.imprecise @@ -512,6 +512,43 @@ (br $while-in$1) ) ) + (func $bitcasts (param $i i32) (param $f f32) + (i32.store + (i32.load + (i32.const 40) + ) + (get_local $i) + ) + (f32.load + (i32.load + (i32.const 40) + ) + ) + (i32.store + (i32.load + (i32.const 40) + ) + (get_local $i) + ) + (f64.promote/f32 + (f32.load + (i32.load + (i32.const 40) + ) + ) + ) + (f32.store + (i32.load + (i32.const 40) + ) + (get_local $f) + ) + (i32.load + (i32.load + (i32.const 40) + ) + ) + ) (func $z (nop) ) |