summaryrefslogtreecommitdiff
path: root/test/binaryen.js/sieve.js.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/sieve.js.txt')
-rw-r--r--test/binaryen.js/sieve.js.txt40
1 files changed, 22 insertions, 18 deletions
diff --git a/test/binaryen.js/sieve.js.txt b/test/binaryen.js/sieve.js.txt
index 3fad13fdf..46e5d3b39 100644
--- a/test/binaryen.js/sieve.js.txt
+++ b/test/binaryen.js/sieve.js.txt
@@ -12,17 +12,19 @@
)
(local.get $0)
)
- (drop
- (memory.grow
- (i32.sub
- (i32.div_u
- (i32.add
- (local.get $0)
- (i32.const 65535)
+ (then
+ (drop
+ (memory.grow
+ (i32.sub
+ (i32.div_u
+ (i32.add
+ (local.get $0)
+ (i32.const 65535)
+ )
+ (i32.const 65536)
)
- (i32.const 65536)
+ (memory.size)
)
- (memory.size)
)
)
)
@@ -70,17 +72,19 @@ optimized:
)
(local.get $0)
)
- (drop
- (memory.grow
- (i32.sub
- (i32.shr_u
- (i32.add
- (local.get $0)
- (i32.const 65535)
+ (then
+ (drop
+ (memory.grow
+ (i32.sub
+ (i32.shr_u
+ (i32.add
+ (local.get $0)
+ (i32.const 65535)
+ )
+ (i32.const 16)
)
- (i32.const 16)
+ (memory.size)
)
- (memory.size)
)
)
)