tests/snapshots/cli/branch-hinting/branch-hinting-simple.wast/0.print
raw| 1 | (module |
| 2 | (type (;0;) (func (result i32))) |
| 3 | (func $main (;0;) (type 0) (result i32) |
| 4 | (local i32 i32 i32 i32) |
| 5 | i32.const 0 |
| 6 | local.tee 2 |
| 7 | local.set 3 |
| 8 | loop ;; label = @1 |
| 9 | local.get 2 |
| 10 | i32.const 50000 |
| 11 | i32.eq |
| 12 | (@metadata.code.branch_hint "\00") |
| 13 | if ;; label = @2 |
| 14 | i32.const 1 |
| 15 | local.set 3 |
| 16 | end |
| 17 | local.get 2 |
| 18 | i32.const 1 |
| 19 | i32.add |
| 20 | local.tee 2 |
| 21 | i32.const 100000 |
| 22 | i32.ne |
| 23 | (@metadata.code.branch_hint "\01") |
| 24 | br_if 0 (;@1;) |
| 25 | end |
| 26 | local.get 3 |
| 27 | ) |
| 28 | ) |