[llvm-bugs] [Bug 28810] New: AVX512: Invalid operand for vcvttss2siq instruction

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 2 01:20:07 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28810

            Bug ID: 28810
           Summary: AVX512: Invalid operand for vcvttss2siq instruction
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: wenzel.jakob at epfl.ch
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16859
  --> https://llvm.org/bugs/attachment.cgi?id=16859&action=edit
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: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72773

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160802/909a85fc/attachment-0001.html>


More information about the llvm-bugs mailing list