RISC-Vのauipc命令
#RISC-V
auipc命令
「PC」と「imm を12ビットシフトした値」の合算した値を rd レジスタへ格納する。
call擬似命令の内部などで利用される(RISC-Vの関数呼び出しと戻り)
Mnemonic
auipc rd, imm20
Instruction
Add upper immediate to PC
Type
U
Description
rd ← PC + imm20 << 12
参考
RISC-V Instruction-Set Cheatsheet
https://itnext.io/risc-v-instruction-set-cheatsheet-70961b4bbe8
RISC-Vについて(CPU実験その2)
https://progrunner.hatenablog.jp/entry/2017/12/03/221829