Files
wasmtime/cranelift/filetests/isa/x86/legalize-call.cton
Dan Gohman 583ae56fd2 Use opt_level instead of is_compressed for encoding optimizations.
Choosing smaller instruction encodings on eg. x86 is an optimization,
rather than a useful discrete setting.

Use "is_compressed" only for ISAs that have an explicit compression feature
that users of the output may to be aware of, such as RISC-V's RVC or
ARM's Thumb-2.
2018-04-19 16:33:38 -07:00

16 lines
271 B
Plaintext

; Test legalization of a non-colocated call in 64-bit non-PIC mode.
test legalizer
set is_64bit
set opt_level=best
isa x86 haswell
function %call() {
fn0 = %foo()
ebb0:
call fn0()
return
}
; check: v0 = func_addr.i64 fn0
; nextln: call_indirect sig0, v0()