[LLVMbugs] [Bug 10495] New: [AVX] "cannot select" ch = store error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 26 02:28:00 PDT 2011


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

           Summary: [AVX] "cannot select" ch = store error
           Product: new-bugs
           Version: trunk
          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


Created an attachment (id=6943)
 --> (http://llvm.org/bugs/attachment.cgi?id=6943)
test case

With the attached test case, if I run:

% llc bug.ll -o /dev/null -mcpu=corei7-avx -mattr=+avx

I get the following crash:


LLVM ERROR: Cannot select: 0x7fe093036110: ch = store 0x104b0e6f8,
0x7fe093035410, 0x7fe093038110, 0x7fe093037510<ST16[FixedStack2], trunc to
v4f32> [ID=29]
  0x7fe093035410: v4f64 = bitcast 0x7fe093035d10 [ID=28]
    0x7fe093035d10: v4i64 = insert_subvector 0x7fe093036210, 0x7fe093035b10,
0x7fe093037d10 [ID=27]
      0x7fe093036210: v4i64 = insert_subvector 0x7fe093037710, 0x7fe093035b10,
0x7fe093035a10 [ID=26]
        0x7fe093037710: v4i64 = undef [ID=8]
        0x7fe093035b10: v2i64 = X86ISD::MOVLHPS 0x7fe093037c10, 0x7fe093037c10
[ID=25]
          0x7fe093037c10: v2i64 = scalar_to_vector 0x7fe093037910 [ID=24]
            0x7fe093037910: i64,ch = load 0x104b0e6f8, 0x7fe093035810,
0x7fe093037510<LD8[%ptr.i997]> [ORD=20] [ID=23]
              0x7fe093035810: i64 = add 0x7fe093036010, 0x7fe093038010 [ORD=18]
[ID=22]
                0x7fe093036010: i64 = FrameIndex<0> [ORD=15] [ID=2]
                0x7fe093038010: i64 = sign_extend 0x7fe093038f10 [ORD=17]
[ID=21]
                  0x7fe093038f10: i32 = shl 0x7fe093037610, 0x7fe093039010
[ORD=16] [ID=20]


              0x7fe093037510: i64 = undef [ORD=20] [ID=5]
          0x7fe093037c10: v2i64 = scalar_to_vector 0x7fe093037910 [ID=24]
            0x7fe093037910: i64,ch = load 0x104b0e6f8, 0x7fe093035810,
0x7fe093037510<LD8[%ptr.i997]> [ORD=20] [ID=23]
              0x7fe093035810: i64 = add 0x7fe093036010, 0x7fe093038010 [ORD=18]
[ID=22]
                0x7fe093036010: i64 = FrameIndex<0> [ORD=15] [ID=2]
                0x7fe093038010: i64 = sign_extend 0x7fe093038f10 [ORD=17]
[ID=21]
                  0x7fe093038f10: i32 = shl 0x7fe093037610, 0x7fe093039010
[ORD=16] [ID=20]


              0x7fe093037510: i64 = undef [ORD=20] [ID=5]
        0x7fe093035a10: i32 = Constant<0> [ID=9]
      0x7fe093035b10: v2i64 = X86ISD::MOVLHPS 0x7fe093037c10, 0x7fe093037c10
[ID=25]
        0x7fe093037c10: v2i64 = scalar_to_vector 0x7fe093037910 [ID=24]
          0x7fe093037910: i64,ch = load 0x104b0e6f8, 0x7fe093035810,
0x7fe093037510<LD8[%ptr.i997]> [ORD=20] [ID=23]
            0x7fe093035810: i64 = add 0x7fe093036010, 0x7fe093038010 [ORD=18]
[ID=22]
              0x7fe093036010: i64 = FrameIndex<0> [ORD=15] [ID=2]
              0x7fe093038010: i64 = sign_extend 0x7fe093038f10 [ORD=17] [ID=21]
                0x7fe093038f10: i32 = shl 0x7fe093037610, 0x7fe093039010
[ORD=16] [ID=20]
                  0x7fe093037610: i32 = fp_to_sint 0x7fe093035710 [ORD=14]
[ID=19]

                  0x7fe093039010: i8 = Constant<3> [ORD=16] [ID=3]
            0x7fe093037510: i64 = undef [ORD=20] [ID=5]
        0x7fe093037c10: v2i64 = scalar_to_vector 0x7fe093037910 [ID=24]
          0x7fe093037910: i64,ch = load 0x104b0e6f8, 0x7fe093035810,
0x7fe093037510<LD8[%ptr.i997]> [ORD=20] [ID=23]
            0x7fe093035810: i64 = add 0x7fe093036010, 0x7fe093038010 [ORD=18]
[ID=22]
              0x7fe093036010: i64 = FrameIndex<0> [ORD=15] [ID=2]
              0x7fe093038010: i64 = sign_extend 0x7fe093038f10 [ORD=17] [ID=21]
                0x7fe093038f10: i32 = shl 0x7fe093037610, 0x7fe093039010
[ORD=16] [ID=20]
                  0x7fe093037610: i32 = fp_to_sint 0x7fe093035710 [ORD=14]
[ID=19]

                  0x7fe093039010: i8 = Constant<3> [ORD=16] [ID=3]
            0x7fe093037510: i64 = undef [ORD=20] [ID=5]
      0x7fe093037d10: i32 = Constant<2> [ID=10]
  0x7fe093038110: i64 = FrameIndex<2> [ID=13]
  0x7fe093037510: i64 = undef [ORD=20] [ID=5]

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