Codegen fix fcvt_from_sint.f32 with small types on riscv64. (#5964)
* fix issue5952 * We should only extend i8 and i16 * remove extra space * move some code
This commit is contained in:
@@ -802,12 +802,12 @@
|
||||
;;;;; Rules for `fcvt_from_sint`;;;;;;;;;
|
||||
(rule
|
||||
(lower (has_type to (fcvt_from_sint v @ (value_type from))))
|
||||
(fpu_rr (int_convert_2_float_op from $true to) to v))
|
||||
(fpu_rr (int_convert_2_float_op from $true to) to (normalize_fcvt_from_int v from (ExtendOp.Signed))))
|
||||
|
||||
;;;;; Rules for `fcvt_from_uint`;;;;;;;;;
|
||||
(rule
|
||||
(lower (has_type to (fcvt_from_uint v @ (value_type from))))
|
||||
(fpu_rr (int_convert_2_float_op from $false to) to v))
|
||||
(fpu_rr (int_convert_2_float_op from $false to) to (normalize_fcvt_from_int v from (ExtendOp.Zero))))
|
||||
|
||||
;;;;; Rules for `symbol_value`;;;;;;;;;
|
||||
(rule
|
||||
|
||||
Reference in New Issue
Block a user