[cg_clif]: Fix codegen of f128 to i128 casts
Correct name for intrinsic that converts f128 to u128 Use `to_signed` instead of `from_signed` to ensure proper intrinsic selected for u128/i128
This commit is contained in:
parent
67799c9739
commit
7be024fc06
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ pub(crate) fn codegen_cast(
|
|||
let ret_ty = if to_ty.bits() < 32 { types::I32 } else { to_ty };
|
||||
let name = format!(
|
||||
"__fix{sign}tf{size}i",
|
||||
sign = if from_signed { "" } else { "un" },
|
||||
sign = if to_signed { "" } else { "uns" },
|
||||
size = match ret_ty {
|
||||
types::I32 => 's',
|
||||
types::I64 => 'd',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue