public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/110217] New: [avr] SREG: use BSET and BCLR instead of load/modify/write
@ 2023-06-12  9:23 mx682x at gmail dot com
  2023-06-30 16:53 ` [Bug target/110217] " gjl at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mx682x at gmail dot com @ 2023-06-12  9:23 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110217

            Bug ID: 110217
           Summary: [avr] SREG: use BSET and BCLR instead of
                    load/modify/write
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mx682x at gmail dot com
  Target Milestone: ---

Created attachment 55306
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55306&action=edit
patch file for gcc 13.1

Hello.

I'd like to suggest a patch that makes the compiler use bset and bclr
instructions when doing SREG &= 0x80 (or ~0x80) or similr. Right now, all
versions, as far as I know, are using in/andi(ori)/out instructions to change
the SREG.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-12 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-12  9:23 [Bug target/110217] New: [avr] SREG: use BSET and BCLR instead of load/modify/write mx682x at gmail dot com
2023-06-30 16:53 ` [Bug target/110217] " gjl at gcc dot gnu.org
2023-07-10  7:18 ` mx682x at gmail dot com
2023-07-12  9:23 ` gjl at gcc dot gnu.org
2023-07-12 20:01 ` gjl at gcc dot gnu.org

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).