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
441 B
Plaintext
15 lines
441 B
Plaintext
; Test the legalization of function signatures for RV32E.
|
|
test legalizer
|
|
target riscv32 enable_e
|
|
|
|
; regex: V=v\d+
|
|
|
|
function %f() {
|
|
; Spilling into the stack args after %x15 since %16 and up are not
|
|
; available in RV32E.
|
|
sig0 = (i64, i64, i64, i64) -> i64 system_v
|
|
; check: sig0 = (i32 [%x10], i32 [%x11], i32 [%x12], i32 [%x13], i32 [%x14], i32 [%x15], i32 [0], i32 [4]) -> i32 [%x10], i32 [%x11] system_v
|
|
ebb0:
|
|
return
|
|
}
|