[LLVMbugs] [Bug 13963] New: [ARM, NEON] "cannot select v4i32 = ARMISD::VDUPLANE" crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 27 19:17:20 PDT 2012


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

             Bug #: 13963
           Summary: [ARM,NEON] "cannot select v4i32 = ARMISD::VDUPLANE"
                    crash
           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: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


With top of tree and this short program:

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:128:128-n8:16:32-S128"
target triple = "arm-apple-darwin12.1.0"

define void @f_fu() nounwind {
allocas:
  %phitmp = fptosi <4 x float> undef to <4 x i32>
  %v.i.i = extractelement <4 x i32> %phitmp, i32 undef
  %r_1.i.i = insertelement <4 x i32> undef, i32 %v.i.i, i32 1
  %r_2.i.i = insertelement <4 x i32> %r_1.i.i, i32 %v.i.i, i32 2
  %r_3.i.i = insertelement <4 x i32> %r_2.i.i, i32 %v.i.i, i32 3
  %br_load_to_float = sitofp <4 x i32> %r_3.i.i to <4 x float>
  store <4 x float> %br_load_to_float, <4 x float>* undef, align 4, !filename
!0, !first_line !1, !first_column !2, !last_line !1, !last_column !3
  ret void
}

!0 = metadata !{metadata !"tests/broadcast-1.ispc"}
!1 = metadata !{i32 7}
!2 = metadata !{i32 5}
!3 = metadata !{i32 22}

If I run llc as follows, I get the following crash:

% llc -mcpu=cortex-a9 -mattr=+neon bugpoint-reduced-simplified.ll
LLVM ERROR: Cannot select: 0x7f8399831d10: v4i32 = ARMISD::VDUPLANE
0x7f8399831110, 0x7f8399831210 [ID=4]
  0x7f8399831110: v4i32 = fp_to_sint 0x7f8399831010 [ORD=1] [ID=3]
    0x7f8399831010: v4f32 = undef [ORD=1] [ID=1]
  0x7f8399831210: i32 = undef [ORD=2] [ID=2]

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