Files
wasmtime/cranelift/filetests/regalloc/reload.cton
Dan Gohman 10dcfcacdb Remove support for entity variables in filecheck.
Now that the parser doesn't renumber indices, there's no need for entity
variables like $v0.
2018-02-20 17:27:46 -08:00

20 lines
411 B
Plaintext

test regalloc
isa riscv enable_e
; regex: V=v\d+
; Check that we can handle a function return value that got spilled.
function %spill_return() -> i32 {
fn0 = function %foo() -> i32 native
ebb0:
v0 = call fn0()
; check: $(reg=$V) = call fn0
; check: v0 = spill $reg
v2 = call fn0()
; check: v2 = call fn0
return v0
; check: $(reload=$V) = fill v0
; check: return $reload
}