[LLVMbugs] [Bug 10258] New: "cannot select" on ARM with variable-index insertelement

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 3 16:13:57 PDT 2011


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

           Summary: "cannot select" on ARM with variable-index
                    insertelement
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu


define <8 x i16> @f(<8 x i16> %a, i16 %b, i32 %c) nounwind readnone {
entry:
    %r = insertelement <8 x i16> %a, i16 %b, i32 %c
    ret <8 x i16> %r
}

$ llc -march=arm -mcpu=cortex-a9 test.ll
LLVM ERROR: Cannot select: 0x101831710: v8i16 = insert_vector_elt 0x101831010,
0x101831310, 0x101831510 [ORD=1] [ID=24]
  0x101831010: v8i16 = bitcast 0x101833110 [ORD=1] [ID=23]
    0x101833110: v2f64 = ARMISD::BUILD_VECTOR 0x10182fc10, 0x101830110 [ID=22]
      0x10182fc10: f64 = ARMISD::VMOVDRR 0x10182f910, 0x10182fb10 [ORD=1]
[ID=20]
        0x10182f910: i32,ch = CopyFromReg 0x10141a6f8, 0x10182f810 [ORD=1]
[ID=14]
          0x10182f810: i32 = Register %vreg0 [ORD=1] [ID=1]
        0x10182fb10: i32,ch = CopyFromReg 0x10141a6f8, 0x10182fa10 [ORD=1]
[ID=15]
          0x10182fa10: i32 = Register %vreg1 [ORD=1] [ID=2]
      0x101830110: f64 = ARMISD::VMOVDRR 0x10182fe10, 0x101830010 [ORD=1]
[ID=21]
        0x10182fe10: i32,ch = CopyFromReg 0x10141a6f8, 0x10182fd10 [ORD=1]
[ID=16]
          0x10182fd10: i32 = Register %vreg2 [ORD=1] [ID=3]
        0x101830010: i32,ch = CopyFromReg 0x10141a6f8, 0x10182ff10 [ORD=1]
[ID=17]
          0x10182ff10: i32 = Register %vreg3 [ORD=1] [ID=4]
  0x101831310: i32,ch = load 0x10141a6f8, 0x101831110,
0x101831210<LD2[FixedStack-1](align=4), anyext from i16> [ID=18]
    0x101831110: i32 = FrameIndex<-1> [ORD=1] [ID=7]
    0x101831210: i32 = undef [ORD=1] [ID=8]
  0x101831510: i32,ch = load 0x10141a6f8, 0x101831410,
0x101831210<LD4[FixedStack-2]> [ORD=1] [ID=19]
    0x101831410: i32 = FrameIndex<-2> [ORD=1] [ID=9]
    0x101831210: i32 = undef [ORD=1] [ID=8]

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