<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 - SIMD: various "error in backend: Cannot select...""
   href="https://bugs.llvm.org/show_bug.cgi?id=43139">43139</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SIMD: various "error in backend: Cannot select..."
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>eustas.ru@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22443" name="attach_22443" title="preprocessed source">attachment 22443</a> <a href="attachment.cgi?id=22443&action=edit" title="preprocessed source">[details]</a></span>
preprocessed source

Checked on several builds from version 8.0.0 (trunk 342117) to 9.0.0 (trunk
366207)
Error location / "bad" instruction changes with slight code modifications.


Example output:

fatal error: error in backend: Cannot select: 0x9615a38: v4f32 =
X86ISD::VRNDSCALE 0x974aa80, Constant:i32<8>
  0x974aa80: v4f32,ch = CopyFromReg 0x64fc3b8, Register:v4f32 %82
    0x9803138: v4f32 = Register %82
  0x9750920: i32 = Constant<8>
In function:
_ZZN4twim12_GLOBAL__N_114simulateEncodeEiRSt6vectorIPNS0_8FragmentESaIS3_EERKNS_11CodecParamsEENK3$_2clERKSt8functionIFDv4_fSC_EE
clang: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 9.0.0 (trunk 366207)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/local/bin


Preprocessed source and script attached.


Steps to reproduce (using git and docker):

git clone <a href="https://github.com/eustas/2im.git">https://github.com/eustas/2im.git</a>
cd 2im
git checkout b39f82e4f6bf7a2e2a491e3cabaa53641e5e332a
docker run -it -v `pwd`/c:/c --entrypoint=/bin/bash
gcr.io/cloud-marketplace-containers/google/bazel@sha256:707089be09a8d4c28c140dc943d4e8b5757fa8ae10c2753063951a087ae83168
# entered the container
cd /c/
bazel build :main
# leave the container
exit</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>