public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/114327] `-CST % 1` is wrong for _BitInt() Date: Thu, 14 Mar 2024 05:31:08 +0000 [thread overview] Message-ID: <bug-114327-4-dSGPky7fjN@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114327-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114327 --- Comment #3 from Zdenek Sojka <zsojka at seznam dot cz> --- It's not only % 1; wrong results are also for: B x = foo (3, -0x9e9b9fe60); or for B foo (char c, B b) { return b / c; } B x = foo (-0x6, 0); /* 0 / -6 = 0 */ in all these cases, the result is the same: -1 << 64.
next prev parent reply other threads:[~2024-03-14 5:31 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-13 19:06 [Bug libgcc/114327] New: wrong code with _BitInt() modulo at -O0 zsojka at seznam dot cz 2024-03-14 0:00 ` [Bug libgcc/114327] `-CST % 1` is wrong for _BitInt() pinskia at gcc dot gnu.org 2024-03-14 0:10 ` pinskia at gcc dot gnu.org 2024-03-14 5:31 ` zsojka at seznam dot cz [this message] 2024-03-14 12:57 ` jakub at gcc dot gnu.org 2024-03-15 18:05 ` cvs-commit at gcc dot gnu.org 2024-03-15 18:07 ` 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-114327-4-dSGPky7fjN@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).