-
- Downloads
[JITLink][RISCV] fix the extractBits behavior and add R_RISCV_JAL relocation.
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 ``` Reviewed By: StephenFan Differential Revision: https://reviews.llvm.org/D117975
Showing
- llvm/include/llvm/ExecutionEngine/JITLink/riscv.h 7 additions, 0 deletionsllvm/include/llvm/ExecutionEngine/JITLink/riscv.h
- llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp 16 additions, 0 deletionsllvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
- llvm/lib/ExecutionEngine/JITLink/riscv.cpp 2 additions, 0 deletionsllvm/lib/ExecutionEngine/JITLink/riscv.cpp
- llvm/test/ExecutionEngine/JITLink/RISCV/ELF_jal.s 37 additions, 0 deletionsllvm/test/ExecutionEngine/JITLink/RISCV/ELF_jal.s
Loading
Please register or sign in to comment