[llvm-bugs] [Bug 30661] New: [PowerPC] inefficient negation of bool

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 11 13:36:24 PDT 2016


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

            Bug ID: 30661
           Summary: [PowerPC] inefficient negation of bool
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: spatel+llvm at rotateright.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

$ cat negate-i1.ll 
define i32 @select_neg1_or_0(i1 %a) {
  %b = sext i1 %a to i32
  ret i32 %b
}

$ ./llc -o - negate-i1.ll -mtriple=powerpc64
    sldi 3, 3, 63
    sradi 3, 3, 63
    blr

Should this be 'neg'?

-- 
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/20161011/2ba784b6/attachment.html>


More information about the llvm-bugs mailing list