Fix issue 5528 (#5605)

* fix parameter error.

* fix float convert to i8 and i16   should extract sign bit.

* add missing regression test file.

* using tmp register.

* float convert i8 will consume more instructions.

* fix worse inst emit size.

* fix worst_case_size.
This commit is contained in:
yuyang
2023-02-01 07:37:36 +08:00
committed by GitHub
parent 8c9eb9939b
commit 0c66a1bba7
5 changed files with 113 additions and 6 deletions

View File

@@ -752,7 +752,7 @@ impl MachInst for Inst {
fn worst_case_size() -> CodeOffset {
// calculate by test function riscv64_worst_case_instruction_size()
100
116
}
fn ref_type_regclass(_settings: &settings::Flags) -> RegClass {