public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/106769] New: PPCLE: vec_extract(vector unsigned int) unnecessary rldicl after mfvsrwz
@ 2022-08-29  6:57 jens.seifert at de dot ibm.com
  2023-05-30  9:14 ` [Bug target/106769] " guihaoc at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jens.seifert at de dot ibm.com @ 2022-08-29  6:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106769
           Summary: PPCLE: vec_extract(vector unsigned int) unnecessary
                    rldicl after mfvsrwz
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jens.seifert at de dot ibm.com
  Target Milestone: ---

#include <altivec.h>

unsigned int extr(vector unsigned int v)
{
   return vec_extract(v, 2);
}

Generates:

_Z4extrDv4_j:
.LFB1:
        .cfi_startproc
        mfvsrwz 3,34
        rldicl 3,3,0,32
        blr
        .long 0
        .byte 0,9,0,0,0,0,0,0
        .cfi_endproc


The rldicl is not necessary as mfvsrwz already wiped out the upper 32 bits of
the register.

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

end of thread, other threads:[~2023-10-09  6:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-29  6:57 [Bug target/106769] New: PPCLE: vec_extract(vector unsigned int) unnecessary rldicl after mfvsrwz jens.seifert at de dot ibm.com
2023-05-30  9:14 ` [Bug target/106769] " guihaoc at gcc dot gnu.org
2023-05-31  9:03 ` guihaoc at gcc dot gnu.org
2023-06-02 15:04 ` bergner at gcc dot gnu.org
2023-06-06  8:35 ` guihaoc at gcc dot gnu.org
2023-08-16  6:24 ` cvs-commit at gcc dot gnu.org
2023-08-17  5:27 ` guihaoc at gcc dot gnu.org
2023-10-09  6:38 ` cvs-commit 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).