public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98434] New: [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di}
@ 2020-12-24 6:30 crazylht at gmail dot com
2020-12-24 6:31 ` [Bug target/98434] " crazylht at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: crazylht at gmail dot com @ 2020-12-24 6:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98434
Bug ID: 98434
Summary: [AVX512] Missing expander for vashl<VI2_AVX512BW>,
vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di}
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: crazylht at gmail dot com
CC: hjl.tools at gmail dot com, wei3.xiao at intel dot com,
wwwhhhyyy333 at gmail dot com
Target Milestone: ---
Target: x86_64-*-* i?86-*-*
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/98434] [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di}
2020-12-24 6:30 [Bug target/98434] New: [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di} crazylht at gmail dot com
@ 2020-12-24 6:31 ` crazylht at gmail dot com
2021-01-27 6:49 ` crazylht at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: crazylht at gmail dot com @ 2020-12-24 6:31 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98434
--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
Also may add expander for VI1_AVX512BW by int16 emulation.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/98434] [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di}
2020-12-24 6:30 [Bug target/98434] New: [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di} crazylht at gmail dot com
2020-12-24 6:31 ` [Bug target/98434] " crazylht at gmail dot com
@ 2021-01-27 6:49 ` crazylht at gmail dot com
2021-06-24 4:49 ` cvs-commit at gcc dot gnu.org
2021-06-24 5:03 ` crazylht at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: crazylht at gmail dot com @ 2021-01-27 6:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98434
--- Comment #2 from Hongtao.liu <crazylht at gmail dot com> ---
Created attachment 50065
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50065&action=edit
Local patch with Bootstrap and regression test on i386/x86_64 is ok.
Will send for review in gcc12
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/98434] [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di}
2020-12-24 6:30 [Bug target/98434] New: [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di} crazylht at gmail dot com
2020-12-24 6:31 ` [Bug target/98434] " crazylht at gmail dot com
2021-01-27 6:49 ` crazylht at gmail dot com
@ 2021-06-24 4:49 ` cvs-commit at gcc dot gnu.org
2021-06-24 5:03 ` crazylht at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-06-24 4:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98434
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:
https://gcc.gnu.org/g:3bd86940c428de9dde53e41265fb1435ed236f5e
commit r12-1764-g3bd86940c428de9dde53e41265fb1435ed236f5e
Author: liuhongt <hongtao.liu@intel.com>
Date: Tue Jan 26 16:29:32 2021 +0800
i386: Add vashlm3/vashrm3/vlshrm3 to enable vectorization of vector shift
vector. [PR98434]
Add expanders for vashl<VI12_AVX512BW>, vlshr<VI12_AVX512BW>,
vashr<VI1_AVX512BW> and vashr<v32hi,v16hi,v4di,v8di>.
Besides there's some assumption in expand_mult_const that mul and
add must be available at the same time, but for i386, addv8qi is
restricted under TARGET_64BIT, but mulv8qi not, that could cause ICE.
So restrict mulv8qi and shiftv8qi under TARGET_64BIT.
gcc/ChangeLog:
PR target/98434
* config/i386/i386-expand.c (ix86_expand_vec_interleave):
Adjust comments for ix86_expand_vecop_qihi2.
(ix86_expand_vecmul_qihi): Renamed to ..
(ix86_expand_vecop_qihi2): Adjust function prototype to
support shift operation, add static to definition.
(ix86_expand_vec_shift_qihi_constant): Add static to definition.
(ix86_expand_vecop_qihi): Call ix86_expand_vecop_qihi2 and
ix86_expand_vec_shift_qihi_constant.
* config/i386/i386-protos.h (ix86_expand_vecmul_qihi): Deleted.
(ix86_expand_vec_shift_qihi_constant): Deleted.
* config/i386/sse.md (VI12_256_512_AVX512VL): New mode
iterator.
(mulv8qi3): Call ix86_expand_vecop_qihi directly, add
condition TARGET_64BIT.
(mul<mode>3): Ditto.
(<insn><mode>3): Ditto.
(vlshr<mode>3): Extend to support avx512 vlshr.
(v<insn><mode>3): New expander for
vashr/vlshr/vashl.
(v<insn>v8qi3): Ditto.
(vashrv8hi3<mask_name>): Renamed to ..
(vashr<mode>3): And extend to support V16QImode for avx512.
(vashrv16qi3): Deleted.
(vashrv2di3<mask_name>): Extend expander to support avx512
instruction.
gcc/testsuite/ChangeLog:
PR target/98434
* gcc.target/i386/pr98434-1.c: New test.
* gcc.target/i386/pr98434-2.c: New test.
* gcc.target/i386/avx512vl-pr95488-1.c: Adjust testcase.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/98434] [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di}
2020-12-24 6:30 [Bug target/98434] New: [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di} crazylht at gmail dot com
` (2 preceding siblings ...)
2021-06-24 4:49 ` cvs-commit at gcc dot gnu.org
@ 2021-06-24 5:03 ` crazylht at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: crazylht at gmail dot com @ 2021-06-24 5:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98434
Hongtao.liu <crazylht at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> ---
Fixed in GCC12.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-06-24 5:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-24 6:30 [Bug target/98434] New: [AVX512] Missing expander for vashl<VI2_AVX512BW>, vlshr<VI2_AVX512BW>, vashr{v32hi,v16hi,v4di,v8di} crazylht at gmail dot com
2020-12-24 6:31 ` [Bug target/98434] " crazylht at gmail dot com
2021-01-27 6:49 ` crazylht at gmail dot com
2021-06-24 4:49 ` cvs-commit at gcc dot gnu.org
2021-06-24 5:03 ` crazylht at gmail dot com
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).