public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108599] [12/13 Regression] Incorrect code generation newer intel architectures Date: Mon, 30 Jan 2023 14:31:04 +0000 [thread overview] Message-ID: <bug-108599-4-ewyevMKMzU@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108599-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108599 --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The bug is in ix86_convert_const_wide_int_to_broadcast. It is called with OImode and (const_wide_int 0x100000000000000010), that CONST_WIDE_INT is actually usable as broadcast from DImode 0x10, but only to TImode, not OImode nor XImode. /* Check if OP can be broadcasted from VAL. */ for (int i = 1; i < CONST_WIDE_INT_NUNITS (op); i++) if (val != CONST_WIDE_INT_ELT (op, i)) return nullptr; checks all elements of the CONST_WIDE_INT, but nothing checks that it has the expected number of elements... Note, 0 and -1 shouldn't happen here, those would be CONST_INT rather than CONST_WIDE_INT and all the others have to use the right number of CONST_WIDE_INT_NUNITS in order to be broadcastable.
next prev parent reply other threads:[~2023-01-30 14:31 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-30 13:18 [Bug c++/108599] New: Incorrect code generation newer intel architectures for gcc 12 and 13 balder at yahooinc dot com 2023-01-30 13:20 ` [Bug c++/108599] " balder at yahooinc dot com 2023-01-30 13:32 ` [Bug target/108599] " balder at yahooinc dot com 2023-01-30 13:49 ` [Bug target/108599] [12/13 Regression] Incorrect code generation newer intel architectures jakub at gcc dot gnu.org 2023-01-30 14:00 ` jakub at gcc dot gnu.org 2023-01-30 14:10 ` jakub at gcc dot gnu.org 2023-01-30 14:31 ` jakub at gcc dot gnu.org [this message] 2023-01-30 15:17 ` rguenth at gcc dot gnu.org 2023-01-30 15:19 ` jakub at gcc dot gnu.org 2023-01-31 9:12 ` cvs-commit at gcc dot gnu.org 2023-01-31 9:14 ` [Bug target/108599] [12 " jakub at gcc dot gnu.org 2023-02-09 11:54 ` balder at yahooinc dot com 2023-02-09 12:02 ` jakub at gcc dot gnu.org 2023-02-10 17:46 ` cvs-commit at gcc dot gnu.org 2023-02-10 18:01 ` jakub at gcc dot gnu.org
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-108599-4-ewyevMKMzU@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).