<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - AVX512: Invalid operand for vcvttss2siq instruction"
   href="https://llvm.org/bugs/show_bug.cgi?id=28810">28810</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AVX512: Invalid operand for vcvttss2siq instruction
          </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>All
          </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>wenzel.jakob@epfl.ch
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16859" name="attach_16859" title="Problematic assembly file">attachment 16859</a> <a href="attachment.cgi?id=16859&action=edit" title="Problematic assembly file">[details]</a></span>
Problematic assembly file

The LLVM assembler (trunk) is unable to compile the attached assembly file
generarated by GCC on MacOS X.

clang++-4 test.s -o test -mavx512f

test.s:555:14: error: invalid operand for instruction
 vcvttss2siq %xmm18, %rax
             ^~~~~~
test.s:559:14: error: invalid operand for instruction
 vcvttss2siq %xmm17, %rax
             ^~~~~~
test.s:561:14: error: invalid operand for instruction
 vcvttss2siq %xmm16, %rax
             ^~~~~~
I see two possibilities:

1. The vcvttss2siq instrunction does not exist for new-style xmm register
arguments, and GCC should not have generated it

2. It is a valid instruction, and it's the Clang assembler's fault for not
recognizing it.

I am not familiar enough with the AVX512F assembly and will create a ticket in
both the GCC and LLVM bugtracker so that this problem can be addressed. The GCC
ticket is here: <a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72773">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72773</a></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>