<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 - [X86] Assertion "Cannot merge volatile loads""
   href="https://bugs.llvm.org/show_bug.cgi?id=42846">42846</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[X86] Assertion "Cannot merge volatile loads"
          </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>Linux
          </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>Backend: X86
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>paul_robinson@playstation.sony.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22324" name="attach_22324" title="stack trace">attachment 22324</a> <a href="attachment.cgi?id=22324&action=edit" title="stack trace">[details]</a></span>
stack trace

$ cat t.cpp
typedef char __attribute__((ext_vector_type(2))) c;
typedef char __attribute__((ext_vector_type(32))) e;
void b(c x);
c j;
c k;
volatile e l, m;
void n() {
  c o = __builtin_shufflevector(l, m, 0, 1), p(o);
  j = o;
  c a (k * p);
  b(a);
}
$ clang -c -O2 t.cpp
clang-10:
/home/probinson/projects/llvm-org/llvm-project/llvm/lib/Target/X86/X86ISelLowering.cpp:7703:
EltsFromConsecutiveLoads(llvm::EVT, llvm::ArrayRef<llvm::SDValue>, const
llvm::SDLoc&, llvm::SelectionDAG&, const llvm::X86Subtarget&,
bool)::<lambda(llvm::EVT, llvm::LoadSDNode*)>: Assertion `!(MMOFlags &
MachineMemOperand::MOVolatile) && "Cannot merge volatile loads."' failed.

(see attachment for stack dump)</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>