[LLVMbugs] [Bug 4495] New: instcombine fails

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 2 04:25:18 PDT 2009


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

           Summary: instcombine fails
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: opt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu


opt -instcombine fails on the input

---------------------------------------------
define i32 @test(i64 %test) {
entry:
        %0 = bitcast <4 x i32> undef to <16 x i8>
        %t12 = shufflevector <16 x i8> %0, <16 x i8> <i8 0, i8 0, i8 0, i8 0,
i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, <16 x
i32> <i32 0, i32 16, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0,
i32 0, i32 0, i32 0, i32 0, i32 0, i32 0>
        %t11 = bitcast <16 x i8> %t12 to <2 x i64>
        %t9 = extractelement <2 x i64> %t11, i32 0
        %t10 = bitcast i64 %t9 to <2 x i32>
        %t7 = bitcast i64 %test to <2 x i32>
        %t6 = xor <2 x i32> %t10, %t7
        %t1 = extractelement <2 x i32> %t6, i32 0
        ret i32 %t1
}
---------------------------------------------


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