public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "navidrahimi at microsoft dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/101955] (signed<<31)>>31 should become -(signed&1) Date: Thu, 11 Nov 2021 00:21:31 +0000 [thread overview] Message-ID: <bug-101955-4-1BtMsm2wSp@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-101955-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101955 navidrahimi <navidrahimi at microsoft dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |navidrahimi at microsoft dot com --- Comment #5 from navidrahimi <navidrahimi at microsoft dot com> --- I think rather than just int f(int b) { return (((b)<<31)>>31); } We should optimize long too: int f(int b) { return (((b)<<63)>>63); } 1) https://compiler-explorer.com/z/dnrr54v4r
next prev parent reply other threads:[~2021-11-11 0:21 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-18 5:47 [Bug middle-end/101955] New: " pinskia at gcc dot gnu.org 2021-08-18 5:48 ` [Bug middle-end/101955] " pinskia at gcc dot gnu.org 2021-08-18 6:49 ` rguenth at gcc dot gnu.org 2021-08-18 15:51 ` schwab@linux-m68k.org 2021-08-18 17:51 ` pinskia at gcc dot gnu.org 2021-08-18 19:22 ` jakub at gcc dot gnu.org 2021-11-11 0:21 ` navidrahimi at microsoft dot com [this message] 2023-08-04 7:10 ` cvs-commit at gcc dot gnu.org 2023-10-11 7:09 ` cvs-commit at gcc dot gnu.org 2023-10-20 23:08 ` cvs-commit at gcc dot gnu.org 2023-10-30 16:23 ` 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-101955-4-1BtMsm2wSp@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).