[PATCH] D86879: [XCOFF][AIX] Handle TOC entries that could not be reached by positive range in small code model

Jason Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 31 08:36:12 PDT 2020


jasonliu created this revision.
jasonliu added reviewers: daltenty, DiggerLin, hubert.reinterpretcast, Xiangling_L.
Herald added subscribers: llvm-commits, kbarton, hiraditya, nemanjai.
Herald added a project: LLVM.
jasonliu requested review of this revision.

In small code model, AIX assembler could not deal with labels that could not be reached within the positive range. 
So when generating the assembly, we would need to help the assembler by subtracting an offset from the label to keep the actual value within [-0x8000, 0x8000).


https://reviews.llvm.org/D86879

Files:
  llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
  llvm/test/CodeGen/PowerPC/aix-overflow-toc.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86879.288953.patch
Type: text/x-patch
Size: 5076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200831/8383b2c5/attachment.bin>


More information about the llvm-commits mailing list