[all-commits] [llvm/llvm-project] bae41f: [BOLT] Fix long jump negative offset issue. (#67132)
qijitao via All-commits
all-commits at lists.llvm.org
Sat Oct 7 14:06:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bae41ff57e04ddcb89ea128065e3d1f9afa9917c
https://github.com/llvm/llvm-project/commit/bae41ff57e04ddcb89ea128065e3d1f9afa9917c
Author: qijitao <119509978+qijitao at users.noreply.github.com>
Date: 2023-10-08 (Sun, 08 Oct 2023)
Changed paths:
M bolt/lib/Passes/LongJmp.cpp
A bolt/test/AArch64/Inputs/long-jmp-offset-boundary.ld
A bolt/test/AArch64/long-jmp-offset-boundary.s
Log Message:
-----------
[BOLT] Fix long jump negative offset issue. (#67132)
In instruction encoding, the relative offset address of the PC is
signed, that is, the number of positive offset bits and the number of
negative offset bits is asymmetric. Therefore, the maximum and minimum
values are used to replace Mask to determine the boundary.
Co-authored-by: qijitao <qijitao at hisilicon.com>
More information about the All-commits
mailing list