[LLVMbugs] [Bug 2358] New: SCCP incorrectly folds cttz(undef) to undef

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri May 23 18:42:26 PDT 2008


           Summary: SCCP incorrectly folds cttz(undef) to undef
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


target datalayout =
target triple = "i686-pc-linux-gnu"

define i32 @x(i32 %b) {
  %val = call i32 @llvm.cttz.i32(i32 undef)
  ret i32 %val

declare i32 @llvm.cttz.i32(i32)

SCCP folds x to ret i32 undef; this is wrong because all of the bits except for
the bottom 6 must be zero.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list