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

           Summary: Bug with zero shifts in DAGTypeLegalizer::
                    ExpandShiftWithUnknownAmountBit
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


In lib/CodeGen/SelectionDag/LegalizeIntegerTypes.cpp.

Commit 90564 already added a note about the bug; there is a FIXME about it in
the code.

@g_shift = global i256 0
define i32 @main() {
    %shift = load i256* @g_shift
    %1 = shl i256 123, %shift
    %eq = icmp eq i256 %1, 123
    %ret = zext i1 %eq to i32    
    ret i32 %ret
}

This returns 0 on x86-64, interpreter returns 1.

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