<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 - compile ok yet ud2 op emitted in x64 assembly and codegen stopped"
   href="https://bugs.llvm.org/show_bug.cgi?id=33017">33017</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>compile ok yet ud2 op emitted in x64 assembly and codegen stopped
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </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>release blocker
          </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>joriswu@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18433" name="attach_18433" title="asm output">attachment 18433</a> <a href="attachment.cgi?id=18433&action=edit" title="asm output">[details]</a></span>
asm output

c11 source compiles without diags, yet executable halts at sigill. Asembly
output reveals an 'ud2' opcode halfway the code, and further code generation is
omitted.

This source file compiled ok with a previous 'trunk' version from 10 March
2017.
After changing the source, this error appeared.

Installed clang release 4.0, and the same error appears.

compiled as :
clang -S -O2 -march=native -Weverything -g -pthread -std=c11 compound.c

offending ud2 is at attached compound.s line 7362, corresponding to compound.c
line 757. From next line compound.c:758 onwards until end of loop is absent in
generated code.</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>