Debian Codegraph @

js/src/jit-test/tests/wasm/regress/baseline-i64-opt-cmp.js

raw
1 // Bug 1404760: Optimized compare-and-branch with a preserved value would fail
2 // the baseline compiler on x86 debug builds (and would just generate bad code
3 // on non-debug builds) because of register starvation.
4
5 wasmEvalText(
6 `(module
7 (func $run (param i64) (param i64) (result i64)
8 block (result i64)
9 i64.const 1
10 (i64.lt_s (local.get 0) (local.get 1))
11 br_if 0
12 drop
13 i64.const 2
14 end)
15 (export "run" (func $run)))`
16 );