public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46012] New: 256bit vectorizer failed on int->double
@ 2010-10-14  8:54 hjl.tools at gmail dot com
  2010-10-14  9:02 ` [Bug tree-optimization/46012] " rguenth at gcc dot gnu.org
  2012-07-13  8:47 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: hjl.tools at gmail dot com @ 2010-10-14  8:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46012

           Summary: 256bit vectorizer failed on int->double
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: rguenth@gcc.gnu.org


For

---
double a[1024];
float b[1024];
int c[1024];

void dependence_distance_4_mixed_0 (void)
{
  int i;
  for (i = 0; i < 1020; ++i)
    a[i + 4] = a[i] + a[i + 4] + c[i];
}
---

with -O3 -ffast-math -mavx, vect256 branch generates:

.L2:
    vmovapd    a(%rax,%rax), %ymm0
    vcvtdq2pd    c(%rax), %ymm1
    vaddpd    a+32(%rax,%rax), %ymm0, %ymm0
    vaddpd    %ymm1, %ymm0, %ymm0
    vmovapd    %ymm0, a+32(%rax,%rax)
    addq    $16, %rax
    cmpq    $4080, %rax
    jne    .L2

Trunk at revision 165455 generates

.L2:
    vmovapd    16(%rax), %xmm2
    vaddpd    -16(%rax), %xmm2, %xmm2
    vmovdqa    (%rdx), %xmm0
    addq    $16, %rdx
    vpshufd    $238, %xmm0, %xmm1
    vcvtdq2pd    %xmm0, %xmm0
    vcvtdq2pd    %xmm1, %xmm1
    vaddpd    %xmm1, %xmm2, %xmm1
    vmovapd    (%rax), %xmm2
    vaddpd    -32(%rax), %xmm2, %xmm2
    vmovapd    %xmm1, 16(%rax)
    vaddpd    %xmm0, %xmm2, %xmm0
    vmovapd    %xmm0, (%rax)
    addq    $32, %rax
    cmpq    %rax, %rcx
    jne    .L2


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

* [Bug tree-optimization/46012] 256bit vectorizer failed on int->double
  2010-10-14  8:54 [Bug tree-optimization/46012] New: 256bit vectorizer failed on int->double hjl.tools at gmail dot com
@ 2010-10-14  9:02 ` rguenth at gcc dot gnu.org
  2012-07-13  8:47 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-10-14  9:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46012

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.14 09:01:56
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-14 09:01:56 UTC ---
Related to PR46011


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

* [Bug tree-optimization/46012] 256bit vectorizer failed on int->double
  2010-10-14  8:54 [Bug tree-optimization/46012] New: 256bit vectorizer failed on int->double hjl.tools at gmail dot com
  2010-10-14  9:02 ` [Bug tree-optimization/46012] " rguenth at gcc dot gnu.org
@ 2012-07-13  8:47 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-13  8:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46012

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |53947

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-13 08:47:11 UTC ---
Link to vectorizer missed-optimization meta-bug.


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

end of thread, other threads:[~2012-07-13  8:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-14  8:54 [Bug tree-optimization/46012] New: 256bit vectorizer failed on int->double hjl.tools at gmail dot com
2010-10-14  9:02 ` [Bug tree-optimization/46012] " rguenth at gcc dot gnu.org
2012-07-13  8:47 ` 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).