summaryrefslogtreecommitdiff
path: root/test/unit.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.fromasm')
-rw-r--r--test/unit.fromasm37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/unit.fromasm b/test/unit.fromasm
index 3db25c78b..dc1db8abe 100644
--- a/test/unit.fromasm
+++ b/test/unit.fromasm
@@ -516,6 +516,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)
)