[llvm-bugs] [Bug 28727] PowerPC - bug in generation of @ha/@l pair for symbol+addend

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 1 17:29:29 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28727

Hal Finkel <hfinkel at anl.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #10 from Hal Finkel <hfinkel at anl.gov> ---
(In reply to comment #9)
> Thanks for digging up the change, Hal. Your comment sounds correct. In fact,
> 
> +    if (GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(ImmOpnd)) {
> +      const GlobalValue *GV = GA->getGlobal();
> +      MaxDisplacement = GV->getAlignment() - 1;
> +    }
> 
> looks suspect. MaxDisplacement can only be 7 or less otherwise the TOC bits
> can potentially (and do in our failure) carry into the 32K displacement.

r280441 should fix this. Thanks again for helping to figure this out!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160902/c7852055/attachment.html>


More information about the llvm-bugs mailing list