Update single_pass_tests/loop to check output value.

This commit is contained in:
losfair 2019-04-02 00:17:38 +08:00
parent 13c5446c55
commit 4451a0f35c

View File

@ -1,5 +1,5 @@
(module
(func $main (export "main") (result i32)
(func $main (export "main")
(local $count i32)
(local $sum i32)
(loop (result i32)
@ -7,10 +7,11 @@
(set_local $sum (i32.add (get_local $sum) (get_local $count)))
(i32.sub (i32.const 1) (i32.eq
(get_local $count)
(i32.const 100000)
(i32.const 50000)
))
(br_if 0)
(get_local $sum)
)
(if (i32.ne (i32.const 1250025000)) (unreachable))
)
)