public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/18437] New: vectorizer failed for matrix multiplication
@ 2004-11-12  1:22 giovannibajo at libero dot it
  2004-11-12  2:43 ` [Bug tree-optimization/18437] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: giovannibajo at libero dot it @ 2004-11-12  1:22 UTC (permalink / raw)
  To: gcc-bugs

Vectorizer fails to handle this:

----------------------------------------------------
#define align(x) __attribute__((align(x)))
typedef float align(16) MATRIX[3][3];

void RotateMatrix(MATRIX ret, MATRIX a, MATRIX b)
{
  int i, j;

  for (j = 0; j < 3; j++)
    for (i = 0; i < 3; i++)
      ret[j][i] =   a[j][0] * b[0][i]
                  + a[j][1] * b[1][i]
                  + a[j][2] * b[2][i];
}
----------------------------------------------------

loop at bench.cc:33: not vectorized: unsupported scalar cycle.
loop at bench.cc:33: bad scalar cycle.

-- 
           Summary: vectorizer failed for matrix multiplication
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-18437-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2023-08-04 20:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-12  1:22 [Bug tree-optimization/18437] New: vectorizer failed for matrix multiplication giovannibajo at libero dot it
2004-11-12  2:43 ` [Bug tree-optimization/18437] " pinskia at gcc dot gnu dot org
2005-02-11 19:16 ` pinskia at gcc dot gnu dot org
2005-09-20 17:44 ` pinskia at gcc dot gnu dot org
     [not found] <bug-18437-4@http.gcc.gnu.org/bugzilla/>
2011-05-22 16:02 ` steven at gcc dot gnu.org
2011-07-27 12:39 ` rguenth at gcc dot gnu.org
2012-04-17 13:55 ` matz at gcc dot gnu.org
2012-05-09 13:07 ` rguenth at gcc dot gnu.org
2012-07-13  8:50 ` rguenth at gcc dot gnu.org
2023-08-04 20:19 ` pinskia at gcc dot gnu.org
2023-08-04 20:20 ` 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).