[PATCH] D86879: [XCOFF][AIX] Handle TOC entries that could not be reached by positive range in small code model
Xiangling Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 2 14:08:21 PDT 2020
Xiangling_L added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:603
+ const int Multiply =
+ (EntryDistanceFromTOCBase - PositiveTOCRange) / TOCRange + 1;
+ return MCBinaryExpr::createAdd(
----------------
Can we add an assertion here to make sure `EntryDistanceFromTOCBase - PositiveTOCRange` do not go beyond `-0x8000`?
================
Comment at: llvm/test/CodeGen/PowerPC/aix-overflow-toc.test:39
+# ASM64: ld 3, L..C12288-131072(2)
+# ASM64: ld 3, L..C12289-131072(2)
----------------
Since toc entry is 8 bytes under 64bit mode, does that mean we can only have no more than 8192 entries?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86879/new/
https://reviews.llvm.org/D86879
More information about the llvm-commits
mailing list