<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 - ICE: "Cannot select: X86ISD::SUBV_BROADCAST" with -O3 -march=skx"
   href="https://bugs.llvm.org/show_bug.cgi?id=42819">42819</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ICE: "Cannot select: X86ISD::SUBV_BROADCAST" with -O3 -march=skx
          </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>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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>Vsevolod.Livinskij@frtk.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Clang fails with ICE.

Reproducer:
extern int a[], b[];
void c() {
  for (int d = 32; d <= 57; d++)
    b[d] = a[d] + a[d - 3];
}

Error:
<span class="quote">>$ clang -c -O3 -march=skx small.c</span >
fatal error: error in backend: Cannot select: t116: v2i64 =
X86ISD::SUBV_BROADCAST t113
  t113: v4i64 = bitcast t9
    t9: v8i32,ch = load<(load 32 from `<8 x i32>* bitcast (i32* getelementptr
inbounds ([0 x i32], [0 x i32]* @a, i64 0, i64 45) to <8 x i32>*)`, align 4,
!tbaa !2)> t0, t156, undef:i64
      t156: i64 = X86ISD::Wrapper TargetGlobalAddress:i64<[0 x i32]* @a> + 180
        t155: i64 = TargetGlobalAddress<[0 x i32]* @a> + 180
      t5: i64 = undef
In function: c
clang-10: error: clang frontend command failed with exit code 70 (use -v to see
invocation)
clang version 10.0.0 (trunk 367162)
Target: x86_64-unknown-linux-gnu
Thread model: posix

LLVM version:
clang version 10.0.0 (trunk 367162)</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>