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 tree-optimization/114121] wrong code with _BitInt() arithmetics at -O2 Date: Tue, 27 Feb 2024 15:43:44 +0000 [thread overview] Message-ID: <bug-114121-4-oN384vR1uo@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114121-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114121 --- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Tried __attribute__((noipa)) unsigned long foo (unsigned long x) { unsigned long y[128], z = 0, w = 0; y[127] = x; __builtin_memset (&y, 0, 127 * sizeof (long)); for (unsigned long i = 0; i < 128; i += 2) { unsigned long a = y[i], b, c, d; b = __builtin_subcl (0, a, z, &c); z = c; if (i >= 64) { if (i == 64) w = c != 0; else w = (c != 0) | w; } d = i + 1; a = y[d]; b = __builtin_subcl (0, a, z, &c); z = c; if (d > 64) w = (c != 0) | w; } return w; } but that doesn't reproduce it unfortunately.
next prev parent reply other threads:[~2024-02-27 15:43 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-26 18:30 [Bug tree-optimization/114121] New: " zsojka at seznam dot cz 2024-02-26 18:36 ` [Bug tree-optimization/114121] " pinskia at gcc dot gnu.org 2024-02-26 18:42 ` pinskia at gcc dot gnu.org 2024-02-26 18:50 ` jakub at gcc dot gnu.org 2024-02-26 18:58 ` jakub at gcc dot gnu.org 2024-02-26 19:10 ` jakub at gcc dot gnu.org 2024-02-26 19:43 ` jakub at gcc dot gnu.org 2024-02-27 8:26 ` rguenth at gcc dot gnu.org 2024-02-27 10:48 ` rguenth at gcc dot gnu.org 2024-02-27 12:29 ` rguenth at gcc dot gnu.org 2024-02-27 12:40 ` jakub at gcc dot gnu.org 2024-02-27 12:41 ` jakub at gcc dot gnu.org 2024-02-27 13:54 ` rguenth at gcc dot gnu.org 2024-02-27 14:19 ` rguenth at gcc dot gnu.org 2024-02-27 15:43 ` jakub at gcc dot gnu.org [this message] 2024-02-28 14:03 ` cvs-commit at gcc dot gnu.org 2024-02-28 14:04 ` rguenth at gcc dot gnu.org 2024-02-28 23:13 ` pinskia at gcc dot gnu.org 2024-03-12 14:16 ` cvs-commit at gcc dot gnu.org 2024-05-07 6:18 ` cvs-commit 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-114121-4-oN384vR1uo@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).