[PATCH] D117975: [JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation.
Siwei Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 22 20:38:59 PST 2022
fourdim created this revision.
fourdim added reviewers: lhames, jrtc27, luismarques.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
fourdim requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.
This patch supports the R_RISCV_JAL relocation.
Moreover, it will fix the extractBits function's behavior as it extracts Size + 1 bits.
In the test ELF_jal.s:
Before:
Hi: 4294836480
extractBits(Hi, 12, 8): 480
After:
Hi: 4294836480
extractBits(Hi, 12, 8): 224
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D117975
Files:
llvm/include/llvm/ExecutionEngine/JITLink/riscv.h
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
llvm/lib/ExecutionEngine/JITLink/riscv.cpp
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_jal.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117975.402282.patch
Type: text/x-patch
Size: 4005 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220123/9db0e22e/attachment.bin>
More information about the llvm-commits
mailing list