aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/MemProfTest.cpp
diff options
context:
space:
mode:
authorfourdim <fourdim@foxmail.com>2022-02-18 14:06:48 +0800
committerfourdim <fourdim@foxmail.com>2022-02-18 14:07:28 +0800
commit1ece3eeeb79e766d4f9e0b5044db2d72946f785d (patch)
tree91f59a670d4a44943af3472fd6707781f90f9f02 /llvm/unittests/ProfileData/MemProfTest.cpp
parentb45d0b3e8e003291f99a12d039c8a54a064adfcb (diff)
downloadllvm-1ece3eeeb79e766d4f9e0b5044db2d72946f785d.zip
llvm-1ece3eeeb79e766d4f9e0b5044db2d72946f785d.tar.gz
llvm-1ece3eeeb79e766d4f9e0b5044db2d72946f785d.tar.bz2
[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
Diffstat (limited to 'llvm/unittests/ProfileData/MemProfTest.cpp')
0 files changed, 0 insertions, 0 deletions