[PATCH] D140827: [JITLink][RISCV] Add R_RISCV_RVC_BRANCH and R_RISCV_RVC_JUMP

Jonas Hahnfeld via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 1 14:14:46 PST 2023


Hahnfeld added inline comments.


================
Comment at: llvm/test/ExecutionEngine/JITLink/RISCV/ELF_rvc.s:19
+
+# jitlink-check: *{2}(test_rvc_branch) = 0xC111
+# jitlink-check: *{2}(test_rvc_branch+2) = 0xE109
----------------
I tried to use `decode_operand` as the other tests do, but it doesn't work - probably because we'd have to tell the disassembler to enable the compressed instructions. Not sure how to do this via `llvm-jitlink`... On the other hand, it was a nice exercise to compute the encoded instructions by hand :-)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140827/new/

https://reviews.llvm.org/D140827



More information about the llvm-commits mailing list