public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/65082] Wasted cycles when using a register based varible Date: Fri, 26 May 2023 01:35:38 +0000 [thread overview] Message-ID: <bug-65082-4-ov5THPXfW3@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-65082-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65082 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: ``` typedef unsigned short uint16_t; register uint16_t r4 asm ("r4"); register uint16_t r6 asm ("r6"); uint16_t pllExec(void) { r4 += r6; return r4>>8; }; ``` We get: mov r24,r4 mov r25,r5 add r24,r6 adc r25,r7 mov r4,r24 mov r5,r25 mov r24,r25 ldi r25,0
next prev parent reply other threads:[~2023-05-26 1:35 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-02-16 21:40 [Bug c/65082] New: " NickParker at Eaton dot com 2015-02-16 21:45 ` [Bug middle-end/65082] " pinskia at gcc dot gnu.org 2015-02-20 13:41 ` gjl at gcc dot gnu.org 2015-02-22 22:17 ` NickParker at Eaton dot com 2015-02-22 22:21 ` NickParker at Eaton dot com 2023-05-26 1:35 ` pinskia at gcc dot gnu.org [this message] 2023-05-26 1:38 ` pinskia at gcc dot gnu.org 2023-05-26 2:30 ` pinskia 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-65082-4-ov5THPXfW3@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).