llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

AVX512: Invalid operand for vcvttss2siq instruction

Open wjakob opened this issue 10 years ago • 3 comments

Bugzilla Link 28810
Resolution FIXED
Resolved on Aug 03, 2016 05:59
Version trunk
OS All
Attachments Problematic assembly file
CC @topperc,@delena,@hfinkel,@igor-breger

Extended Description

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

wjakob avatar Aug 02 '16 10:08 wjakob

fixed in r277586 https://reviews.llvm.org/rL277586

igor-breger avatar Aug 03 '16 12:08 igor-breger

There are missing aliases vcvttss2si{q}, vcvttss2si{l} on AVX-512. We'll add them. vcvttss2si works.

delena avatar Aug 02 '16 21:08 delena

Can you try -mavx512vl?

topperc avatar Aug 02 '16 21:08 topperc