[llvm-bugs] [Bug 26356] PowerPC64: fast isel creates bad constant

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 2 14:31:49 PST 2016


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

Anton Blanchard <anton at samba.org> changed:

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

--- Comment #4 from Anton Blanchard <anton at samba.org> ---
Thanks Eric, Nemanja. I think we still have an issue in PPCMaterializeInt:


target datalayout = "e-m:e-i64:64-n32:64"
target triple = "powerpc64le-unknown-linux-gnu"

; Function Attrs: nounwind
define internal i32 @foo() #0 {
  ret i32 32768
}


# llc -O1 testcase.ll
...
foo:
        li 3, 0
        ori 3, 3, 32768
        blr


# llc -O1 -fast-isel testcase.ll
...
foo:
        li 3, -32768
        blr

-- 
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/20160202/2f424b0a/attachment.html>


More information about the llvm-bugs mailing list