public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107281] New: comparisations with u/int64_t constants not generate vector-result
@ 2022-10-16 20:24 g.peterhoff@t-online.de
2022-10-16 20:48 ` [Bug target/107281] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: g.peterhoff@t-online.de @ 2022-10-16 20:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107281
Bug ID: 107281
Summary: comparisations with u/int64_t constants not generate
vector-result
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: g.peterhoff@t-online.de
Target Milestone: ---
If no 64-bit vector comparisons are available no vectorized results are
produced for the cases <=, >=, <, and >.
The cases == and != works. The comparisons themselves are then carried out
individually, but the result is combined with unpcklqdq.
It would be better if this works with all comparisons so that can better
(auto)vectorized.
It might be possible to further optimize this so that no scalar comparisons are
necessary - especially for the frequent case constant=0.
https://godbolt.org/z/cj8n9TenK
thx
Gero
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/107281] comparisations with u/int64_t constants not generate vector-result
2022-10-16 20:24 [Bug c++/107281] New: comparisations with u/int64_t constants not generate vector-result g.peterhoff@t-online.de
@ 2022-10-16 20:48 ` pinskia at gcc dot gnu.org
2022-10-16 21:01 ` ubizjak at gmail dot com
2022-10-17 8:06 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-16 20:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107281
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 53711
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53711&action=edit
testcase
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/107281] comparisations with u/int64_t constants not generate vector-result
2022-10-16 20:24 [Bug c++/107281] New: comparisations with u/int64_t constants not generate vector-result g.peterhoff@t-online.de
2022-10-16 20:48 ` [Bug target/107281] " pinskia at gcc dot gnu.org
@ 2022-10-16 21:01 ` ubizjak at gmail dot com
2022-10-17 8:06 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: ubizjak at gmail dot com @ 2022-10-16 21:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107281
--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Try to compile the testcase with -msse4.2.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/107281] comparisations with u/int64_t constants not generate vector-result
2022-10-16 20:24 [Bug c++/107281] New: comparisations with u/int64_t constants not generate vector-result g.peterhoff@t-online.de
2022-10-16 20:48 ` [Bug target/107281] " pinskia at gcc dot gnu.org
2022-10-16 21:01 ` ubizjak at gmail dot com
@ 2022-10-17 8:06 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-17 8:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107281
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-10-17
Ever confirmed|0 |1
Version|unknown |13.0
Status|UNCONFIRMED |WAITING
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Can you outline how this should be done without SSE 4.2?
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-17 8:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-16 20:24 [Bug c++/107281] New: comparisations with u/int64_t constants not generate vector-result g.peterhoff@t-online.de
2022-10-16 20:48 ` [Bug target/107281] " pinskia at gcc dot gnu.org
2022-10-16 21:01 ` ubizjak at gmail dot com
2022-10-17 8:06 ` rguenth 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).