http://llvm.org/bugs/show_bug.cgi?id=3225

           Summary: Wrong code legalizing 64-bit shift on x86
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=2310)
 --> (http://llvm.org/bugs/attachment.cgi?id=2310)
Testcase

Testcase attached; should print out "4294967295" when run, but currently prints
out "-1" on x86.

Roughly, the issue is that DAGTypeLegalizer::
ExpandShiftWithKnownAmountBit is generating an undefined shift.  This issue is
often not visible on x86 because it requires a shift by zero, and shldl hides
the issue; however, a carefully crafted testcase like the attached shows the
issue.


-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to