* Cranelift AArch64: Simplify leaf functions that do not use the stack Leaf functions that do not use the stack (e.g. do not clobber any callee-saved registers) do not need a frame record. Copyright (c) 2021, Arm Limited.
32 lines
479 B
Plaintext
32 lines
479 B
Plaintext
test compile
|
|
set unwind_info=false
|
|
target aarch64
|
|
|
|
function %ireduce_128_64(i128) -> i64 {
|
|
block0(v0: i128):
|
|
v1 = ireduce.i64 v0
|
|
return v1
|
|
}
|
|
; check: ret
|
|
|
|
function %ireduce_128_32(i128) -> i32 {
|
|
block0(v0: i128):
|
|
v1 = ireduce.i32 v0
|
|
return v1
|
|
}
|
|
; check: ret
|
|
|
|
function %ireduce_128_16(i128) -> i16 {
|
|
block0(v0: i128):
|
|
v1 = ireduce.i16 v0
|
|
return v1
|
|
}
|
|
; check: ret
|
|
|
|
function %ireduce_128_8(i128) -> i8 {
|
|
block0(v0: i128):
|
|
v1 = ireduce.i8 v0
|
|
return v1
|
|
}
|
|
; check: ret
|