Files
wasmtime/cranelift/filetests/filetests/stack_maps/call.clif
Nick Fitzgerald 05bf9ea3f3 Rename "Stackmap" to "StackMap"
And "stackmap" to "stack_map".

This commit is purely mechanical.
2020-08-07 10:08:44 -07:00

104 lines
2.5 KiB
Plaintext

test stack_maps
set enable_safepoints=true
target x86_64
function %icall_fast(r64) -> r64 fast {
; check: function %icall_fast
; nextln: ss0 = spill_slot 8, offset -32
fn0 = %none()
block0(v0: r64):
; check: ss0] v0 = spill v2
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %icall_sys_v(r64) -> r64 system_v {
; check: function %icall_sys_v
; nextln: ss0 = spill_slot 8, offset -32
fn0 = %none()
block0(v0: r64):
; check: ss0] v0 = spill v2
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %icall_fastcall(r64) -> r64 windows_fastcall {
; check: function %icall_fastcall
; nextln: ss0 = spill_slot 8, offset -32
; nextln: ss1 = incoming_arg 24, offset -24
; nextln: ss2 = explicit_slot 32, offset -64
fn0 = %none()
block0(v0: r64):
; check: ss0] v0 = spill v2
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 8
; nextln: - live: [4]
function %call_fast(r64) -> r64 fast {
; check: function %call_fast
; nextln: ss0 = spill_slot 8, offset -32
fn0 = colocated %none()
block0(v0: r64):
; check: ss0] v0 = spill v1
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %call_sys_v(r64) -> r64 system_v {
; check: function %call_sys_v
; nextln: ss0 = spill_slot 8, offset -32
fn0 = colocated %none()
block0(v0: r64):
; check: ss0] v0 = spill v1
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 4
; nextln: - live: [0]
function %call_fastcall(r64) -> r64 windows_fastcall {
; check: function %call_fastcall
; nextln: ss0 = spill_slot 8, offset -32
; nextln: ss1 = incoming_arg 24, offset -24
; nextln: ss2 = explicit_slot 32, offset -64
fn0 = colocated %none()
block0(v0: r64):
; check: ss0] v0 = spill v1
; check: safepoint v0
call fn0()
return v0
}
; check: Stack maps:
; nextln:
; nextln: safepoint v0
; nextln: - mapped words: 8
; nextln: - live: [4]