AVX512: Invalid operand for vcvttss2siq instruction
| 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:
-
The vcvttss2siq instrunction does not exist for new-style xmm register arguments, and GCC should not have generated it
-
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
fixed in r277586 https://reviews.llvm.org/rL277586
There are missing aliases vcvttss2si{q}, vcvttss2si{l} on AVX-512. We'll add them. vcvttss2si works.
Can you try -mavx512vl?