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.
44 lines
809 B
Plaintext
44 lines
809 B
Plaintext
test compile
|
|
target x86_64 baseline
|
|
|
|
; umulhi/smulhi on 64 bit operands
|
|
|
|
function %i64_umulhi(i64, i64) -> i64 {
|
|
ebb0(v10: i64, v11: i64):
|
|
v12 = umulhi v10, v11
|
|
; check: %rdi -> %rax
|
|
; check: x86_umulx
|
|
; check: %rdx -> %rax
|
|
return v12
|
|
}
|
|
|
|
function %i64_smulhi(i64, i64) -> i64 {
|
|
ebb0(v20: i64, v21: i64):
|
|
v22 = smulhi v20, v21
|
|
; check: %rdi -> %rax
|
|
; check: x86_smulx
|
|
; check: %rdx -> %rax
|
|
return v22
|
|
}
|
|
|
|
|
|
; umulhi/smulhi on 32 bit operands
|
|
|
|
function %i32_umulhi(i32, i32) -> i32 {
|
|
ebb0(v30: i32, v31: i32):
|
|
v32 = umulhi v30, v31
|
|
; check: %rdi -> %rax
|
|
; check: x86_umulx
|
|
; check: %rdx -> %rax
|
|
return v32
|
|
}
|
|
|
|
function %i32_smulhi(i32, i32) -> i32 {
|
|
ebb0(v40: i32, v41: i32):
|
|
v42 = smulhi v40, v41
|
|
; check: %rdi -> %rax
|
|
; check: x86_smulx
|
|
; check: %rdx -> %rax
|
|
return v42
|
|
}
|