public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/107283] New: conversions u/int64_t to float64/32_t are not vectorized
@ 2022-10-16 23:22 g.peterhoff@t-online.de
  2022-10-16 23:24 ` [Bug tree-optimization/107283] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: g.peterhoff@t-online.de @ 2022-10-16 23:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107283

            Bug ID: 107283
           Summary: conversions u/int64_t to float64/32_t are not
                    vectorized
           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: ---

The conversions u/int64_t to float64/32_t are not vectorisized if no HW-support
(eg AVX512) available.

But we can do that manually
https://stackoverflow.com/questions/41144668/how-to-efficiently-perform-double-int64-conversions-with-sse-avx

In the case u/int64_t -> float32_t i first convert to float64_t and then to
float32_t. There might be a better way to implement this.

With HW-support the standard implementation is of course faster.

https://godbolt.org/z/WTa663PrK

thx
Gero

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-17  9:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-16 23:22 [Bug c++/107283] New: conversions u/int64_t to float64/32_t are not vectorized g.peterhoff@t-online.de
2022-10-16 23:24 ` [Bug tree-optimization/107283] " pinskia at gcc dot gnu.org
2022-10-16 23:31 ` g.peterhoff@t-online.de
2022-10-17  8:10 ` [Bug target/107283] " rguenth at gcc dot gnu.org
2022-10-17  9:41 ` jakub at gcc dot gnu.org
2022-10-17  9:59 ` 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).