public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/94395] New: Powerpc suboptimal 64-bit constant generation near large values with few bits set
@ 2020-03-30  5:34 npiggin at gmail dot com
  2020-04-30 17:23 ` [Bug target/94395] " segher at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: npiggin at gmail dot com @ 2020-03-30  5:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94395
           Summary: Powerpc suboptimal 64-bit constant generation near
                    large values with few bits set
           Product: gcc
           Version: 9.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: npiggin at gmail dot com
  Target Milestone: ---

0xc000000000000000UL is generated with

        li 9,-1
        rldicr 9,9,0,1

0xbfffffffffffffffUL (0xc000000000000000UL - 1) is

        lis 9,0xbfff
        ori 9,9,0xffff
        sldi 9,9,32
        oris 9,9,0xffff
        ori 9,9,0xffff

Could be

        li 9,-1
        rldicr 9,9,0,1
        subi 9,9,1

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

end of thread, other threads:[~2023-10-08  3:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-30  5:34 [Bug target/94395] New: Powerpc suboptimal 64-bit constant generation near large values with few bits set npiggin at gmail dot com
2020-04-30 17:23 ` [Bug target/94395] " segher at gcc dot gnu.org
2022-02-11 13:50 ` christophe.leroy at csgroup dot eu
2023-10-08  3:12 ` guojiufu 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).