public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/103124] New: PPC: "mr" instruction is unnecessary when extending DI to V1TI
@ 2021-11-08  3:20 guihaoc at gcc dot gnu.org
  2021-11-08  3:24 ` [Bug target/103124] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: guihaoc at gcc dot gnu.org @ 2021-11-08  3:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103124
           Summary: PPC: "mr" instruction is unnecessary when extending DI
                    to V1TI
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: guihaoc at gcc dot gnu.org
  Target Milestone: ---

//test.c
vector __int128 init (long long a)
{
  vector __int128 b;
  b = (vector __int128) {a};
  return b;
}

gcc -O2 -s test.c -mcpu=power9

//p9 assembly
        mr 10,3
        sradi 11,3,63
        mtvsrdd 34,11,10

The first mr is unnecessary if the last one is changed to "mtvsrdd 34,11,3".

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

end of thread, other threads:[~2022-01-18  1:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08  3:20 [Bug target/103124] New: PPC: "mr" instruction is unnecessary when extending DI to V1TI guihaoc at gcc dot gnu.org
2021-11-08  3:24 ` [Bug target/103124] " pinskia at gcc dot gnu.org
2021-11-08  3:29 ` guihaoc at gcc dot gnu.org
2021-11-09  2:34 ` guihaoc at gcc dot gnu.org
2021-11-09  2:39 ` guihaoc at gcc dot gnu.org
2021-11-10  5:19 ` segher at gcc dot gnu.org
2021-12-01  8:33 ` guihaoc at gcc dot gnu.org
2022-01-17  5:29 ` cvs-commit at gcc dot gnu.org
2022-01-18  1:15 ` guihaoc 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).