<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [WebAssembly] llvm::TargetLowering::getVectorElementPointer - assertion failed: Converting bits to bytes lost precision"
   href="https://bugs.llvm.org/show_bug.cgi?id=42304">42304</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[WebAssembly] llvm::TargetLowering::getVectorElementPointer - assertion failed: Converting bits to bytes lost precision
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: WebAssembly
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>llvm-dev@redking.me.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Reduced from <a href="https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13905">https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13905</a>

; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "llvm/test/Transforms/InstCombine/apint-shift.ll"
target triple = "wasm32-unknown-unknown"

define void @multiuse_shl_shl_splat() {
bb:
  %L = load i16, i16* undef
  %E = extractelement <2 x i42> zeroinitializer, i16 %L
  store i42 %E, i42* undef
  ret void
}


llc -mtriple=wasm32--
        .text
        .file   "apint-shift.ll"
llc: /home/simon/LLVM/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:5412:
llvm::SDValue
llvm::TargetLowering::getVectorElementPointer(llvm::SelectionDAG&,
llvm::SDValue, llvm::EVT, llvm::SDValue) const: Assertion `EltSize * 8 ==
EltVT.getSizeInBits() && "Converting bits to bytes lost precision"' failed.</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>