[llvm-bugs] [Bug 22970] Addressing mode matching does not combine a 32 bit constant addition into a 64 bit address mode calculation

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 26 06:15:16 PDT 2017


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

Simon Pilgrim <llvm-dev at redking.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |llvm-dev at redking.me.uk
         Resolution|---                         |FIXED

--- Comment #7 from Simon Pilgrim <llvm-dev at redking.me.uk> ---
Looks good in trunk - added test at rL301401.

tst2(int*, int):                             # @tst2(int*, int)
        andl    $4095, %esi             # imm = 0xFFF
        movl    32(%rdi,%rsi,4), %eax
        retq

tst2(int*, long):                             # @tst2(int*, long)
        andl    $4095, %esi             # imm = 0xFFF
        movl    32(%rdi,%rsi,4), %eax
        retq

-- 
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/20170426/f3f89e32/attachment.html>


More information about the llvm-bugs mailing list