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 c++/115192] [11/12/13/14/15 regression] -O3 miscompilation on x86-64 (loops with vectors and scalars) since r11-6380
Date: Thu, 23 May 2024 07:14:07 +0000	[thread overview]
Message-ID: <bug-115192-4-d7HHROjiVk@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-115192-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #7)
> int main()
> { 
>   const int n = 3;
>   float d[n*n];
>   float4_t a[n*n];

I'd recommend using #define n 3 or enum { n = 3 }; instead of const int n = 3;
so that the arrays aren't unnecessary VLAs.

  parent reply	other threads:[~2024-05-23  7:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-22 14:54 [Bug c++/115192] New: GCC 14.1.0 -O3 miscompilation on x86-64 (loops with vectors and scalars) jukka.suomela at aalto dot fi
2024-05-22 14:55 ` [Bug c++/115192] " jukka.suomela at aalto dot fi
2024-05-22 15:29 ` [Bug c++/115192] [14/15 regression] " sjames at gcc dot gnu.org
2024-05-22 15:37 ` [Bug c++/115192] [14/15 regression] -O3 miscompilation on x86-64 (loops with vectors and scalars) since r14-2117 jakub at gcc dot gnu.org
2024-05-22 17:02 ` jukka.suomela at aalto dot fi
2024-05-22 17:12 ` jakub at gcc dot gnu.org
2024-05-22 17:36 ` [Bug c++/115192] [11/12/13/14/15 regression] -O3 miscompilation on x86-64 (loops with vectors and scalars) since r11-6380 sjames at gcc dot gnu.org
2024-05-23  7:05 ` rguenth at gcc dot gnu.org
2024-05-23  7:14 ` jakub at gcc dot gnu.org [this message]
2024-05-23  8:09 ` rguenth at gcc dot gnu.org
2024-05-23  8:10 ` rguenth at gcc dot gnu.org
2024-05-23  9:32 ` rsandifo at gcc dot gnu.org
2024-05-24 12:47 ` cvs-commit at gcc dot gnu.org
2024-05-24 12:48 ` [Bug c++/115192] [11/12/13/14 " rsandifo at gcc dot gnu.org
2024-05-31  7:23 ` cvs-commit at gcc dot gnu.org
2024-05-31 14:56 ` [Bug c++/115192] [11/12/13 " cvs-commit at gcc dot gnu.org
2024-06-04  7:47 ` [Bug c++/115192] [11/12 " cvs-commit at gcc dot gnu.org
2024-06-04 12:47 ` [Bug c++/115192] [11 " cvs-commit at gcc dot gnu.org
2024-06-04 12:48 ` rsandifo 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-115192-4-d7HHROjiVk@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: link
Be 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).