[all-commits] [llvm/llvm-project] e752b5: [lld][ELF] Add a corner testcase for elf::getLoong...
Lu Weining via All-commits
all-commits at lists.llvm.org
Fri Nov 10 00:15:46 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e752b58e0d26fc08bca6b2a4e56b05af7f8d8d66
https://github.com/llvm/llvm-project/commit/e752b58e0d26fc08bca6b2a4e56b05af7f8d8d66
Author: Weining Lu <luweining at loongson.cn>
Date: 2023-11-10 (Fri, 10 Nov 2023)
Changed paths:
M lld/test/ELF/loongarch-pc-aligned.s
Log Message:
-----------
[lld][ELF] Add a corner testcase for elf::getLoongArchPageDelta
If `page(dest) - page(pc)` is 0xfffffffffff000, i.e. page(pc) is next
to page(dest), and lo12(dest) > 0x7ff, correct %pc64_lo12 and %pc64_hi12
should be both -1 (which can be checked with binutils) but they are both
0 on lld. This patch adds such a test showing lld's incorrect behaviour
and following patch will fix this issue.
More information about the All-commits
mailing list