public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108804] missed vectorization in presence of conversion from uint64_t to float Date: Mon, 20 Feb 2023 11:14:28 +0000 [thread overview] Message-ID: <bug-108804-4-sCki0ZiAvs@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108804-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108804 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-* Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |missed-optimization Last reconfirmed| |2023-02-20 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- EVRP does @@ -38,16 +61,18 @@ k_12 = k_10 >> 23; _2 = k_12 & 8388607; y_13 = _2 | 1065353216; - _3 = (float) x_11; + _17 = (signed long) x_11; + _3 = (float) _17; f[i_6] = _3; _4 = i_6 + 128; - _5 = (float) y_13; + _18 = (signed long) y_13; + _5 = (float) _18; f[_4] = _5; because unsigned long -> float is even more difficult. With -fno-tree-vrp the conversion is still from uint64_t but that's not supported either. So it's a target issue. Shorter testcase: #include<stdint.h> uint64_t d[512]; float f[1024]; void foo() { for (int i=0; i<512; ++i) { uint64_t k = d[i]; f[i]=k; } }
next prev parent reply other threads:[~2023-02-20 11:14 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-02-15 14:16 [Bug tree-optimization/108804] New: " vincenzo.innocente at cern dot ch 2023-02-15 20:28 ` [Bug tree-optimization/108804] " pinskia at gcc dot gnu.org 2023-02-15 20:30 ` [Bug target/108804] " pinskia at gcc dot gnu.org 2023-02-20 11:14 ` rguenth at gcc dot gnu.org [this message] 2023-02-21 0:54 ` crazylht at gmail dot com 2023-03-09 5:52 ` crazylht at gmail dot com 2023-05-30 23:18 ` cvs-commit at gcc dot gnu.org 2023-05-30 23:18 ` crazylht at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-108804-4-sCki0ZiAvs@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).