public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/94864] New: Failure to combine vunpckhpd+movsd into single vunpckhpd
@ 2020-04-29 21:59 gabravier at gmail dot com
  2020-04-29 22:03 ` [Bug tree-optimization/94864] " gabravier at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gabravier at gmail dot com @ 2020-04-29 21:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 94864
           Summary: Failure to combine vunpckhpd+movsd into single
                    vunpckhpd
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

typedef double v2df __attribute__((vector_size(16)));

v2df move_sd(v2df a, v2df b)
{
    v2df result = a;
    result[0] = b[1];
    return result;
}

LLVM outputs this :

move_sd(double __vector(2), double __vector(2)): # @move_sd(double __vector(2),
double __vector(2))
  vunpckhpd xmm0, xmm1, xmm0 # xmm0 = xmm1[1],xmm0[1]
  ret

GCC outputs this : 

move_sd(double __vector(2), double __vector(2)):
  vunpckhpd xmm1, xmm1, xmm1
  vmovsd xmm0, xmm0, xmm1
  ret

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

end of thread, other threads:[~2023-08-22  9:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-29 21:59 [Bug tree-optimization/94864] New: Failure to combine vunpckhpd+movsd into single vunpckhpd gabravier at gmail dot com
2020-04-29 22:03 ` [Bug tree-optimization/94864] " gabravier at gmail dot com
2020-04-30  7:03 ` [Bug rtl-optimization/94864] " rguenth at gcc dot gnu.org
2020-05-04 15:17 ` segher at gcc dot gnu.org
2020-05-07 11:04 ` rguenth at gcc dot gnu.org
2023-07-31 11:31 ` rguenth at gcc dot gnu.org
2023-08-22  9:34 ` cvs-commit at gcc dot gnu.org
2023-08-22  9:35 ` rguenth 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).