Files
wasmtime/filetests/regalloc/basic.cton
Jakob Stoklund Olesen 832247019b Remove the return_reg instruction.
RISC architectures that take a return address in a register can use a
special-purpose `link` return value to do so.
2017-04-19 16:08:16 -07:00

13 lines
201 B
Plaintext

test regalloc
; We can add more ISAs once they have defined encodings.
isa riscv
function add(i32, i32) {
ebb0(v1: i32, v2: i32):
v3 = iadd v1, v2
; check: [R#0c,%x0]
; sameln: iadd
return
}