This switches from a custom list of architectures to use the target-lexicon crate. - "set is_64bit=1; isa x86" is replaced with "target x86_64", and similar for other architectures, and the `is_64bit` flag is removed entirely. - The `is_compressed` flag is removed too; it's no longer being used to control REX prefixes on x86-64, ARM and Thumb are separate architectures in target-lexicon, and we can figure out how to select RISC-V compressed encodings when we're ready.
15 lines
264 B
Plaintext
15 lines
264 B
Plaintext
; Test legalization of a non-colocated call in 64-bit non-PIC mode.
|
|
test legalizer
|
|
set opt_level=best
|
|
target x86_64 haswell
|
|
|
|
function %call() {
|
|
fn0 = %foo()
|
|
ebb0:
|
|
call fn0()
|
|
return
|
|
}
|
|
|
|
; check: v0 = func_addr.i64 fn0
|
|
; nextln: call_indirect sig0, v0()
|