summaryrefslogtreecommitdiff
path: root/test/min.fromasm.imprecise
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-04-25 17:27:11 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-04-25 17:27:11 -0700
commitcb35ee67868bdc2b8839766b7e10b65e8fcc122a (patch)
treefe42733df528358ac059121b73929e4db52e18cd /test/min.fromasm.imprecise
parent27ef6de772ca90824018819b91b8a230136f56c3 (diff)
parent8a68b4e6506e66312d75c3cff8aa0b36563548e3 (diff)
downloadbinaryen-cb35ee67868bdc2b8839766b7e10b65e8fcc122a.tar.gz
binaryen-cb35ee67868bdc2b8839766b7e10b65e8fcc122a.tar.bz2
binaryen-cb35ee67868bdc2b8839766b7e10b65e8fcc122a.zip
Merge pull request #394 from WebAssembly/more-br-opts
More control flow optimization
Diffstat (limited to 'test/min.fromasm.imprecise')
-rw-r--r--test/min.fromasm.imprecise32
1 files changed, 13 insertions, 19 deletions
diff --git a/test/min.fromasm.imprecise b/test/min.fromasm.imprecise
index 26501d4a5..6deb6ae67 100644
--- a/test/min.fromasm.imprecise
+++ b/test/min.fromasm.imprecise
@@ -4,24 +4,20 @@
(export "floats" $floats)
(func $floats (param $f f32) (result f32)
(local $t f32)
- (return
- (f32.add
- (get_local $t)
- (get_local $f)
- )
+ (f32.add
+ (get_local $t)
+ (get_local $f)
)
)
(func $neg (param $k i32) (param $p i32) (result f32)
- (return
- (f32.neg
- (block
- (i32.store
- (get_local $k)
- (get_local $p)
- )
- (f32.load
- (get_local $k)
- )
+ (f32.neg
+ (block
+ (i32.store
+ (get_local $k)
+ (get_local $p)
+ )
+ (f32.load
+ (get_local $k)
)
)
)
@@ -40,10 +36,8 @@
)
)
(func $ctzzzz (result i32)
- (return
- (i32.ctz
- (i32.const 4660)
- )
+ (i32.ctz
+ (i32.const 4660)
)
)
)