public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/106564] New: PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values
@ 2022-08-08 19:49 dimitar at gcc dot gnu.org
  2022-08-08 19:50 ` [Bug target/106564] " dimitar at gcc dot gnu.org
  2022-08-08 19:56 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: dimitar at gcc dot gnu.org @ 2022-08-08 19:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106564
           Summary: PRU: Inefficient zero-extend from 32-bit to 64-bit
                    unsigned values
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimitar at gcc dot gnu.org
  Target Milestone: ---

Compiler uses 8-bit constant loads instead of 32-bit constant load to
zero-extend 32-bit unsigned values.

uint64_t test(uint32_t a)
{
        return a;
}

test:
        mov     r0, r14
        ldi     r1.b0, (0) & 0xffff
        ldi     r1.b1, (0) & 0xffff
        ldi     r1.b2, (0) & 0xffff
        ldi     r1.b3, (0) & 0xffff
        mov     r14, r0
        mov     r15, r1
        ret

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

* [Bug target/106564] PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values
  2022-08-08 19:49 [Bug target/106564] New: PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values dimitar at gcc dot gnu.org
@ 2022-08-08 19:50 ` dimitar at gcc dot gnu.org
  2022-08-08 19:56 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dimitar at gcc dot gnu.org @ 2022-08-08 19:50 UTC (permalink / raw)
  To: gcc-bugs

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

Dimitar Dimitrov <dimitar at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-08-08
             Status|UNCONFIRMED                 |ASSIGNED

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

* [Bug target/106564] PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values
  2022-08-08 19:49 [Bug target/106564] New: PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values dimitar at gcc dot gnu.org
  2022-08-08 19:50 ` [Bug target/106564] " dimitar at gcc dot gnu.org
@ 2022-08-08 19:56 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-08-08 19:56 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
           Keywords|                            |missed-optimization

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

end of thread, other threads:[~2022-08-08 19:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 19:49 [Bug target/106564] New: PRU: Inefficient zero-extend from 32-bit to 64-bit unsigned values dimitar at gcc dot gnu.org
2022-08-08 19:50 ` [Bug target/106564] " dimitar at gcc dot gnu.org
2022-08-08 19:56 ` pinskia 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).