diff options
author | fourdim <fourdim@foxmail.com> | 2022-02-18 14:06:48 +0800 |
---|---|---|
committer | fourdim <fourdim@foxmail.com> | 2022-02-18 14:07:28 +0800 |
commit | 1ece3eeeb79e766d4f9e0b5044db2d72946f785d (patch) | |
tree | 91f59a670d4a44943af3472fd6707781f90f9f02 /llvm/unittests/ProfileData/MemProfTest.cpp | |
parent | b45d0b3e8e003291f99a12d039c8a54a064adfcb (diff) | |
download | llvm-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