https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124349
Bug ID: 124349
Summary: assemble failure "operand size mismatch for
`vcomisbf16'" with -masm=intel
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: assemble-failure
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 63816
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63816&action=edit
reduced testcase
Output:
$ gcc -mavx10.2 -masm=intel testcase.c
/tmp/ccUglaxO.s: Assembler messages:
/tmp/ccUglaxO.s:35: Error: operand size mismatch for `vcomisbf16'
The assembly is accepted when changed:
- vcomisbf16 xmm0, XMMWORD PTR [rbp-16]
+ vcomisbf16 xmm0, WORD PTR [rbp-16]
the instruction compares only the first vector element.
This can be observed even with current binutils HEAD:
$ as -v
GNU assembler version 2.46.50 (x86_64-pc-linux-gnu) using BFD version (Gentoo
9999 p1) 2.46.50.20260302