Files
wasmtime/cranelift/filetests/filetests/runtests/riscv64_issue_4996.clif
Trevor Elliott a5698cedf8 cranelift: Remove brz and brnz (#5630)
Remove the brz and brnz instructions, as their behavior is now redundant with brif.
2023-01-30 20:34:56 +00:00

26 lines
621 B
Plaintext

test interpret
test run
set enable_llvm_abi_extensions=true
target riscv64
; This is a regression test for https://github.com/bytecodealliance/wasmtime/issues/4996.
function %issue4996() -> i128, i64 system_v {
block0:
v5 = iconst.i8 0
brif v5, block1, block3 ; v5 = 0
block1:
v12 = iconst.i64 0
v13 = uextend.i128 v12 ; v12 = 0
jump block5(v13)
block3:
v20 = iconst.i64 0
v21 = uextend.i128 v20 ; v20 = 0
jump block5(v21)
block5(v23: i128):
v29 = iconst.i64 0
return v23, v29 ; v29 = 0
}
; run: %issue4996() == [0,0]