[LLVMbugs] [Bug 10002] New: Wrongfully assuming RHS is always unsigned

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue May 24 05:48:33 PDT 2011


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

           Summary: Wrongfully assuming RHS is always unsigned
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vslugovsky at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6638)
 --> (http://llvm.org/bugs/attachment.cgi?id=6638)
A simple test case which fails

CGExprScalar.cpp: EmitShl(...) may produce an integer cast for a right hand
side expression, assuming that it is unsigned. Please see the attached test
case which produces a wrong IR and a patch to fix this problem.

-- 
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