[Mono][RISC-V] emit mul inst instead of emulated mul (#85445)
authorVincentWu <43398706+Xinlong-Wu@users.noreply.github.com>
Sat, 8 Jul 2023 17:47:00 +0000 (01:47 +0800)
committerGitHub <noreply@github.com>
Sat, 8 Jul 2023 17:47:00 +0000 (13:47 -0400)
commit045b526b7185d78ae20e9868e8857ce85a88d493
treed1c13f8a834435457187570901725a872c69b024
parent42742cd261a203dcd18cffb3c9ac8ce86df706d9
[Mono][RISC-V] emit mul inst instead of emulated mul (#85445)

* update makefile

* add format file

* use mul inst instead of emulate mul
process stack size larger than imm32

* emit get_throw_trampoline

* mono_riscv_throw_exception

* fix error of stack trace

* test case

* output inst idiv
fix mono_riscv_emit_branch_exc

* implement mono_arch_get_throw_corlib_exception

* fix rdiv

* move ArgOnStack arg at prologue
lowering OP_XOR_IMM&OP_IXOR_IMM

* fix emit_imm

* test imm

* update test case

* use swich to process return value

* fix offset of params in a call

* lowering OP_IDIV_IMM

* fmt

* remove test file

* address comment
src/mono/mono/arch/riscv/riscv-codegen.h
src/mono/mono/mini/cpu-riscv64.mdesc
src/mono/mono/mini/exceptions-riscv.c
src/mono/mono/mini/mini-riscv.c
src/mono/mono/mini/mini-riscv.h
src/mono/mono/mini/tramp-riscv.c