[RISC-V] Fix Shuffling Thunks part 1 (#90266)
authorTomasz Sowiński <tomeksowi@gmail.com>
Fri, 11 Aug 2023 06:52:04 +0000 (08:52 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Aug 2023 06:52:04 +0000 (23:52 -0700)
commit4bc156c6488164a89cc7fbaf4022c333abc6764b
tree9b6df62e71cba9af44b5e329181d212dca856ba0
parent5549f72da3b3cea9e74bb81cfbb0f2d27731fc42
[RISC-V] Fix Shuffling Thunks part 1 (#90266)

* [RISC-V] Fix failing cases with delegates passing a struct with 2 longs as argument (test16833.cs -> TestMRB1, TestMRB5)

Fix emits a stack shuffle entry when we run out of general purpose registers, analogous to loongarch64.

* [RISC-V] Fix comment, inter-register mov doesn't take an immediate.

* [RISC-V] Remove unused EmitLoadStoreRegPairImm methods

* [RISC-V] Fix offset encoding in sd instruction

Co-authored-by: Dong-Heon Jung <clamp03@gmail.com>
---------

Co-authored-by: Dong-Heon Jung <clamp03@gmail.com>
src/coreclr/jit/helperexpansion.cpp
src/coreclr/vm/comdelegate.cpp
src/coreclr/vm/riscv64/cgencpu.h
src/coreclr/vm/riscv64/stubs.cpp