[all-commits] [llvm/llvm-project] 9868ea: [XCOFF][AIX] Handle TOC entries that could not be ...

jasonliudev via All-commits all-commits at lists.llvm.org
Mon Sep 14 06:43:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9868ea764f31b0fd4ec250867807aa0ad7958abf
      https://github.com/llvm/llvm-project/commit/9868ea764f31b0fd4ec250867807aa0ad7958abf
  Author: jasonliu <jasonliu.development at gmail.com>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M llvm/lib/MC/XCOFFObjectWriter.cpp
    M llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
    A llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
    M llvm/test/CodeGen/PowerPC/lit.local.cfg

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

Summary:
In small code model, AIX assembler could not deal with labels that
could not be reached within the [-0x8000, 0x8000) range from TOC base.
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).

Reviewed By: hubert.reinterpretcast, Xiangling_L

Differential Revision: https://reviews.llvm.org/D86879




More information about the All-commits mailing list