public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "amacleod at redhat dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/101497] [12 Regression] ice in type, at value-range.h:221 Date: Mon, 19 Jul 2021 19:11:10 +0000 [thread overview] Message-ID: <bug-101497-4-bHTbEWgHZ3@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101497-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101497 --- Comment #5 from Andrew Macleod <amacleod at redhat dot com> --- uc_1.0_1 = uc_1; _2 = (int) uc_1.0_1; _3 = 211 - _2; _3 evaluates as 211 - [-128, 127], or [84, 339] _4 = _3 > 0; _5 = (int) _4; func_12_uli_6 = _5; i_4.1_6 = i_4; _7 = i_4.1_6 % 0; We changed it so that anything mod 0 was undefined. so _7 is UNDEFINED. i_4 = _7; _11 = _3 > 0; _3 i s[84, 339] meaning _11 always evaluates TRUE. _10 = _11 ? _7 : 0; The code for COND_EXPR confirms the types match when it folds. In this case, the result is UNDEFINED.. undefined has no type, so we need to add a check for that.
next prev parent reply other threads:[~2021-07-19 19:11 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-18 7:53 [Bug c/101497] New: " dcb314 at hotmail dot com 2021-07-18 7:58 ` [Bug tree-optimization/101497] [12 Regression] " pinskia at gcc dot gnu.org 2021-07-18 7:58 ` pinskia at gcc dot gnu.org 2021-07-18 16:38 ` dcb314 at hotmail dot com 2021-07-18 16:56 ` dcb314 at hotmail dot com 2021-07-18 17:58 ` dcb314 at hotmail dot com 2021-07-19 6:36 ` rguenth at gcc dot gnu.org 2021-07-19 19:11 ` amacleod at redhat dot com [this message] 2021-07-22 12:53 ` cvs-commit at gcc dot gnu.org 2021-07-22 13:07 ` amacleod at redhat 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-101497-4-bHTbEWgHZ3@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).