mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
riscv: movi: use addiw in RV64
This commit is contained in:
parent
019cd02410
commit
746660bf08
1 changed files with 4 additions and 0 deletions
|
@ -1585,7 +1585,11 @@ movi(jit_state_t *_jit, int32_t r0, jit_word_t i0)
|
|||
}
|
||||
|
||||
if(lo || hi == 0){
|
||||
#if __WORDSIZE == 64
|
||||
em_wp(_jit, _ADDIW(r0, srcreg, lo));
|
||||
#elif __WORDSIZE == 32
|
||||
em_wp(_jit, _ADDI(r0, srcreg, lo));
|
||||
#endif
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue