public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104104] New: Assembler messages: Error: number of operands mismatch for `vxorps'
@ 2022-01-18 20:14 asolokha at gmx dot com
2022-01-18 20:28 ` [Bug target/104104] [12 Regression] " jakub at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2022-01-18 20:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104104
Bug ID: 104104
Summary: Assembler messages: Error: number of operands mismatch
for `vxorps'
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: assemble-failure
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
Target: x86_64-unknown-linux-gnu
GNU as 2.37 fails to assemble the output of gcc 12.0.0 20220116 snapshot
(g:90045c5df5b3c8853e7740fb72a11aead1c489bb), compiled w/ -march=alderlake
-masm=intel -O1 -fallow-store-data-races -funroll-all-loops, w/ the following
diagnostics:
% x86_64-unknown-linux-gnu-gcc-12.0.0 -march=alderlake -masm=intel -O1
-fallow-store-data-races -funroll-all-loops -c fo56tlbm.c
/tmp/ccSYPU7W.s: Assembler messages:
/tmp/ccSYPU7W.s:160: Error: number of operands mismatch for `vxorps'
/tmp/ccSYPU7W.s:173: Error: number of operands mismatch for `vxorps'
__attribute__ ((simd)) short int
foo (void)
{
return 0;
}
Indeed, w/ -masm=intel gcc emits plain vxorps w/o any operands.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/104104] [12 Regression] Assembler messages: Error: number of operands mismatch for `vxorps'
2022-01-18 20:14 [Bug target/104104] New: Assembler messages: Error: number of operands mismatch for `vxorps' asolokha at gmx dot com
@ 2022-01-18 20:28 ` jakub at gcc dot gnu.org
2022-01-18 20:40 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-18 20:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104104
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Summary|Assembler messages: Error: |[12 Regression] Assembler
|number of operands mismatch |messages: Error: number of
|for `vxorps' |operands mismatch for
| |`vxorps'
Status|UNCONFIRMED |ASSIGNED
CC| |jakub at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Target Milestone|--- |12.0
Last reconfirmed| |2022-01-18
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/104104] [12 Regression] Assembler messages: Error: number of operands mismatch for `vxorps'
2022-01-18 20:14 [Bug target/104104] New: Assembler messages: Error: number of operands mismatch for `vxorps' asolokha at gmx dot com
2022-01-18 20:28 ` [Bug target/104104] [12 Regression] " jakub at gcc dot gnu.org
@ 2022-01-18 20:40 ` jakub at gcc dot gnu.org
2022-01-19 1:25 ` cvs-commit at gcc dot gnu.org
2022-01-19 1:25 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-18 20:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104104
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 52219
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52219&action=edit
gcc12-pr104104.patch
Untested fix.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/104104] [12 Regression] Assembler messages: Error: number of operands mismatch for `vxorps'
2022-01-18 20:14 [Bug target/104104] New: Assembler messages: Error: number of operands mismatch for `vxorps' asolokha at gmx dot com
2022-01-18 20:28 ` [Bug target/104104] [12 Regression] " jakub at gcc dot gnu.org
2022-01-18 20:40 ` jakub at gcc dot gnu.org
@ 2022-01-19 1:25 ` cvs-commit at gcc dot gnu.org
2022-01-19 1:25 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-01-19 1:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104104
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:ddce00dba244d889d688490517fb106169a72f01
commit r12-6715-gddce00dba244d889d688490517fb106169a72f01
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Jan 19 02:24:06 2022 +0100
i386: Fix GLC tuning with -masm=intel [PR104104]
> > On Sat, Jan 15, 2022 at 5:39 PM Hongyu Wang <wwwhhhyyy333@gmail.com>
wrote:
> > > Thanks for the suggestion, here is the updated patch that survived
> > > bootstrap/regtest.
Unfortunately the patch results in assembler failures with -masm=intel.
> > > > + if (TARGET_DEST_FALSE_DEPENDENCY
> > > > + && get_attr_dest_false_dep (insn) ==
> > > > + DEST_FALSE_DEP_TRUE)
> > > > + output_asm_insn ("vxorps\t{%x0, %x0, %x0}", operands);
All the vxorps insns were emitted like the above, which means for
-masm=sysv
it looks like
vxorps %xmm3, %xmm3, %xmm3
but for -masm=intel like:
vxorps
We want obviously
vxorps xmm3, xmm3, xmm3
so the following patch just drops the errorneous {}s.
2022-01-19 Jakub Jelinek <jakub@redhat.com>
PR target/104104
* config/i386/sse.md
(<avx512>_<complexopname>_<mode><maskc_name><round_name>,
avx512fp16_<complexopname>sh_v8hf<mask_scalarc_name><round_scalarcz_name>,
avx512dq_mul<mode>3<mask_name>,
<avx2_avx512>_permvar<mode><mask_name>,
avx2_perm<mode>_1<mask_name>, avx512f_perm<mode>_1<mask_name>,
avx512dq_rangep<mode><mask_name><round_saeonly_name>,
avx512dq_ranges<mode><mask_scalar_name><round_saeonly_scalar_name>,
<avx512>_getmant<mode><mask_name><round_saeonly_name>,
avx512f_vgetmant<mode><mask_scalar_name><round_saeonly_scalar_name>):
Use vxorps\t%x0, %x0, %x0 instead of vxorps\t{%x0, %x0, %x0}.
* gcc.target/i386/pr104104.c: New test.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/104104] [12 Regression] Assembler messages: Error: number of operands mismatch for `vxorps'
2022-01-18 20:14 [Bug target/104104] New: Assembler messages: Error: number of operands mismatch for `vxorps' asolokha at gmx dot com
` (2 preceding siblings ...)
2022-01-19 1:25 ` cvs-commit at gcc dot gnu.org
@ 2022-01-19 1:25 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-01-19 1:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104104
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-19 1:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-18 20:14 [Bug target/104104] New: Assembler messages: Error: number of operands mismatch for `vxorps' asolokha at gmx dot com
2022-01-18 20:28 ` [Bug target/104104] [12 Regression] " jakub at gcc dot gnu.org
2022-01-18 20:40 ` jakub at gcc dot gnu.org
2022-01-19 1:25 ` cvs-commit at gcc dot gnu.org
2022-01-19 1:25 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).