<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - [AVX512] assertion hits in getSimpleVT() when using avx512.mask.loadu.pd.512 intrinsic"
   href="http://llvm.org/bugs/show_bug.cgi?id=20677">20677</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AVX512] assertion hits in getSimpleVT() when using avx512.mask.loadu.pd.512 intrinsic
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matt@pharr.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=12905" name="attach_12905" title="test case">attachment 12905</a> <a href="attachment.cgi?id=12905&action=edit" title="test case">[details]</a></span>
test case

With top of tree and the attached program, I'm seeing the following. The issue
seems to be related to using @llvm.x86.avx512.mask.loadu.pd.512. I have been
able to successfully use the loadu.ps.512 variant, for what it's worth. (It
also looks like neither of these has a test in test/CodeGen/X86, FWIW).

% llc -mcpu=knl -filetype=asm bug.ll -o -
    .section    __TEXT,__text,regular,pure_instructions
    .macosx_version_min 13, 3
Assertion failed: (isSimple() && "Expected a SimpleValueType!"), function
getSimpleVT, file /Users/mpharr/llvm-dev-src/include/llvm/CodeGen/ValueTypes.h,
line 205.
0  llc                      0x0000000109969438 void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
11736
1  llc                      0x0000000109969924 void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
12996
2  libsystem_platform.dylib 0x00007fff8d2115aa _sigtramp + 26
3  libsystem_platform.dylib 000000000000000000 _sigtramp + 1927211632
4  llc                      0x00000001099696d6 void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
12406
5  llc                      0x00000001099696b1 void
std::__1::seed_seq::generate<unsigned int*>(unsigned int*, unsigned int*) +
12369
6  llc                      0x00000001091d98cb void
std::__1::vector<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>,
std::__1::allocator<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>
<span class="quote">> >::__push_back_slow_path<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass</span >
const*> >(std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>&&) +
315339
7  llc                      0x00000001091b0bae void
std::__1::vector<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>,
std::__1::allocator<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>
<span class="quote">> >::__push_back_slow_path<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass</span >
const*> >(std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>&&) +
148142
8  llc                      0x00000001091b0222 void
std::__1::vector<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>,
std::__1::allocator<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>
<span class="quote">> >::__push_back_slow_path<std::__1::pair<llvm::MVT, llvm::TargetRegisterClass</span >
const*> >(std::__1::pair<llvm::MVT, llvm::TargetRegisterClass const*>&&) +
145698
9  llc                      0x00000001093539d3 void
std::__1::vector<llvm::GCRoot, std::__1::allocator<llvm::GCRoot>
<span class="quote">>::__push_back_slow_path<llvm::GCRoot>(llvm::GCRoot&&) + 35251</span >
10 llc                      0x0000000109352bf7 void
std::__1::vector<llvm::GCRoot, std::__1::allocator<llvm::GCRoot>
<span class="quote">>::__push_back_slow_path<llvm::GCRoot>(llvm::GCRoot&&) + 31703</span >
11 llc                      0x000000010935023a void
std::__1::vector<llvm::GCRoot, std::__1::allocator<llvm::GCRoot>
<span class="quote">>::__push_back_slow_path<llvm::GCRoot>(llvm::GCRoot&&) + 21018</span >
12 llc                      0x00000001090de689 std::__1::__tree<unsigned short,
std::__1::less<unsigned short>, std::__1::allocator<unsigned short>
<span class="quote">>::destroy(std::__1::__tree_node<unsigned short, void*>*) + 265</span >
13 llc                      0x000000010948b95c llvm::raw_ostream&
llvm::WriteGraph<llvm::MachineFunction const*>(llvm::raw_ostream&,
llvm::MachineFunction const* const&, bool, llvm::Twine const&) + 5708
14 llc                      0x00000001098f6f9d void*
llvm::object_creator<llvm::LeakDetectorImpl<void> >() + 26189
15 llc                      0x00000001098f722b void*
llvm::object_creator<llvm::LeakDetectorImpl<void> >() + 26843
16 llc                      0x00000001098f785c void*
llvm::object_creator<llvm::LeakDetectorImpl<void> >() + 28428
17 llc                      0x0000000108aacd29
18 libdyld.dylib            0x00007fff8c1155fd start + 1
Stack dump:
0.    Program arguments: /Users/mpharr/llvm-dev/bin/llc -mcpu=knl -filetype=asm
bug.ll -o - 
1.    Running pass 'Function Pass Manager' on module 'bug.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function
'@add___UM_vydvyd'
[1]    32213 illegal hardware instruction  ~/llvm-dev/bin/llc -mcpu=knl
-filetype=asm bug.ll -o -</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>