[LLVMbugs] [Bug 2924] New: select instruction with struct result type asserts in SDNode::getValueType

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Oct 21 07:23:40 PDT 2008


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

           Summary: select instruction with struct result type asserts in
                    SDNode::getValueType
           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: tomas.l.olsen at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=2114)
 --> (http://llvm.org/bugs/attachment.cgi?id=2114)
select on struct failure

I've attached a bugpoint reduced test case that trigger an assertion failure on
a select instruction with { i32, i8* } type.

Pasting .ll here as well for convenience:

; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
target triple = "i686-pc-linux-gnu"

define x86_stdcallcc { i32, i8* } @_D3std6string7toupperFAaZAa({ i32, i8* } %s)
{
entry_std.string.toupper:
        %tmp58 = load i32* null         ; <i32> [#uses=1]
        %tmp59 = icmp eq i32 %tmp58, 0          ; <i1> [#uses=1]
        %r.val = load { i32, i8* }* null, align 8               ; <{ i32, i8*
}> [#uses=1]
        %condtmp.0 = select i1 %tmp59, { i32, i8* } undef, { i32, i8* } %r.val 
        ; <{ i32, i8* }> [#uses=1]
        ret { i32, i8* } %condtmp.0
}


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