[LLVMbugs] [Bug 16807] New: Crash in x86 instruction selection from short program

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 6 09:45:40 PDT 2013


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

            Bug ID: 16807
           Summary: Crash in x86 instruction selection from short program
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10992
  --> http://llvm.org/bugs/attachment.cgi?id=10992&action=edit
test case

With top-of-tree, the attached test case hits the following bug in instruction
selection.

% llc -o - bugpoint-reduced-simplified.ll
    .section    __TEXT,__text,regular,pure_instructions
LLVM ERROR: Cannot select: 0x7ff18103de10: v16i16 = X86ISD::VSRAI
0x7ff181044210, 0x7ff18103da10 [ORD=4] [ID=49]
  0x7ff181044210: v16i16 = insert_subvector 0x7ff181044110, 0x7ff18103ce10,
0x7ff18103d410 [ORD=4] [ID=48]
    0x7ff181044110: v16i16 = insert_subvector 0x7ff181042f10, 0x7ff18103e810,
0x7ff18103ad10 [ORD=4] [ID=47]
      0x7ff181042f10: v16i16 = undef [ID=31]
      0x7ff18103e810: v8i16 = add 0x7ff18103eb10, 0x7ff18103e310 [ORD=4]
[ID=46]
        0x7ff18103eb10: v8i16 = bitcast 0x7ff18103b010 [ORD=3] [ID=39]
          0x7ff18103b010: v2i64,ch = load 0x7ff180c11d50, 0x7ff181044510,
0x7ff18103b810<LD16[ConstantPool]> [ORD=3] [ID=37]
            0x7ff181044510: i64 = X86ISD::WrapperRIP 0x7ff181044410 [ID=35]
              0x7ff181044410: i64 = TargetConstantPool<<8 x i16> <i16 1, i16 1,
i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>> 0 [ID=32]
            0x7ff18103b810: i64 = undef [ID=1]
        0x7ff18103e310: v8i16 = extract_subvector 0x7ff18103d210,
0x7ff18103ad10 [ORD=4] [ID=44]
          0x7ff18103d210: v16i16 = X86ISD::VSRLI 0x7ff18103cd10, 0x7ff18103ca10
[ORD=4] [ID=42]
            0x7ff18103cd10: v16i16 = X86ISD::VSRAI 0x7ff181044610,
0x7ff18103ca10 [ORD=4] [ID=41]
              0x7ff181044610: v16i16 = bitcast 0x7ff18103b110 [ORD=3] [ID=40]
                0x7ff18103b110: v4i64,ch = load 0x7ff180c11d50, 0x7ff181044710,
0x7ff18103b810<LD32[ConstantPool]> [ORD=3] [ID=38]
                  0x7ff181044710: i64 = X86ISD::WrapperRIP 0x7ff181044310
[ID=36]

                  0x7ff18103b810: i64 = undef [ID=1]
              0x7ff18103ca10: i32 = Constant<15> [ID=20]
            0x7ff18103ca10: i32 = Constant<15> [ID=20]
          0x7ff18103ad10: i64 = Constant<0> [ID=3]
      0x7ff18103ad10: i64 = Constant<0> [ID=3]
    0x7ff18103ce10: v8i16 = add 0x7ff18103eb10, 0x7ff18103e710 [ORD=4] [ID=45]
      0x7ff18103eb10: v8i16 = bitcast 0x7ff18103b010 [ORD=3] [ID=39]
        0x7ff18103b010: v2i64,ch = load 0x7ff180c11d50, 0x7ff181044510,
0x7ff18103b810<LD16[ConstantPool]> [ORD=3] [ID=37]
          0x7ff181044510: i64 = X86ISD::WrapperRIP 0x7ff181044410 [ID=35]
            0x7ff181044410: i64 = TargetConstantPool<<8 x i16> <i16 1, i16 1,
i16 1, i16 1, i16 1, i16 1, i16 1, i16 1>> 0 [ID=32]
          0x7ff18103b810: i64 = undef [ID=1]
      0x7ff18103e710: v8i16 = extract_subvector 0x7ff18103d210, 0x7ff18103d410
[ORD=4] [ID=43]
        0x7ff18103d210: v16i16 = X86ISD::VSRLI 0x7ff18103cd10, 0x7ff18103ca10
[ORD=4] [ID=42]
          0x7ff18103cd10: v16i16 = X86ISD::VSRAI 0x7ff181044610, 0x7ff18103ca10
[ORD=4] [ID=41]
            0x7ff181044610: v16i16 = bitcast 0x7ff18103b110 [ORD=3] [ID=40]
              0x7ff18103b110: v4i64,ch = load 0x7ff180c11d50, 0x7ff181044710,
0x7ff18103b810<LD32[ConstantPool]> [ORD=3] [ID=38]
                0x7ff181044710: i64 = X86ISD::WrapperRIP 0x7ff181044310 [ID=36]
                  0x7ff181044310: i64 = TargetConstantPool<<16 x i16> <i16 1,
i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1, i16 1,
i16 1, i16 1, i16 1, i16 1>> 0 [ID=33]
                0x7ff18103b810: i64 = undef [ID=1]
            0x7ff18103ca10: i32 = Constant<15> [ID=20]
          0x7ff18103ca10: i32 = Constant<15> [ID=20]
        0x7ff18103d410: i64 = Constant<8> [ID=12]
    0x7ff18103d410: i64 = Constant<8> [ID=12]
  0x7ff18103da10: i32 = Constant<1> [ID=21]
In function: f_fu
%

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130806/d755d29d/attachment.html>


More information about the llvm-bugs mailing list