summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/gvn-unremovable-phi.js
blob: 98869a642758f32a3c0ced81752a3afe4a47db4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
wasmEvalText(`(module
  (type $type0 (func (param i32)))
  (func $f (param $p i32)
    (local $x i32) (local $y i32)
    loop $top
      local.get $x
      local.get $p
      local.get $x
      br_if $top
      i32.const 1
      local.tee $p
      local.get $y
      local.set $x
      i32.add
      call $f
      br_if $top
      return
    end
  )
)`);