public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kristerw at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111668] New: vrp2 introduces invalid wide Boolean values Date: Mon, 02 Oct 2023 22:14:18 +0000 [thread overview] Message-ID: <bug-111668-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111668 Bug ID: 111668 Summary: vrp2 introduces invalid wide Boolean values Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: kristerw at gcc dot gnu.org Target Milestone: --- The vrp2 pass introduces an invalid wide Boolean when compiling the function int *a, b, c, d; void foo (void) { for (; d <= 0; d++) b &= ((a || d) ^ c) == 1; } What is happening is that vrp2 changes the IR _Bool _16; <signed-boolean:32> _66; gimple_assign <cond_expr, _66, _16, -1, 0> to the incorrect _Bool _16; <signed-boolean:32> _38; <signed-boolean:32> _66; gimple_assign <nop_expr, _38, _16, NULL, NULL> gimple_assign <negate_expr, _66, _38, NULL, NULL>
next reply other threads:[~2023-10-02 22:14 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-10-02 22:14 kristerw at gcc dot gnu.org [this message] 2023-10-02 22:28 ` [Bug tree-optimization/111668] vrp2 (match and simplify) introduces invalid wide signed " pinskia at gcc dot gnu.org 2023-10-02 22:30 ` pinskia at gcc dot gnu.org 2023-10-02 22:32 ` [Bug tree-optimization/111668] [12/13/14 Regression] " pinskia at gcc dot gnu.org 2023-10-03 8:33 ` jakub at gcc dot gnu.org 2023-10-03 8:48 ` jakub at gcc dot gnu.org 2023-10-04 7:29 ` cvs-commit at gcc dot gnu.org 2023-10-04 7:33 ` [Bug tree-optimization/111668] [12/13 " jakub at gcc dot gnu.org 2023-10-04 9:45 ` rguenth at gcc dot gnu.org 2023-10-08 21:41 ` kristerw at gcc dot gnu.org 2023-11-27 23:22 ` kristerw at gcc dot gnu.org 2024-05-13 11:30 ` rguenth 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-111668-4@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).