public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/39069]  New: signed short plus and signed char plus not vectorized
@ 2009-02-01 20:35 dann at godzilla dot ics dot uci dot edu
  2009-02-01 20:50 ` [Bug tree-optimization/39069] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: dann at godzilla dot ics dot uci dot edu @ 2009-02-01 20:35 UTC (permalink / raw)
  To: gcc-bugs

gcc -march=core2 -O3 -ftree-vectorizer-verbose=6 
for this code: 

#define SIZE 10000
signed short a[SIZE];
signed short b[SIZE];
signed short c[SIZE];

void add()
{
  int i;
  for (i = 0; i < SIZE; ++i)
    a[i] = b[i] + c[i];
}

cannot vectorize the loop:

add_sshort.c:9: note: vect_model_load_cost: aligned.
add_sshort.c:9: note: vect_model_load_cost: inside_cost = 1, outside_cost = 0 .
add_sshort.c:9: note: not vectorized: relevant stmt not supported: D.1580_6 =
(short unsigned int) D.1579_5
add_sshort.c:7: note: vectorized 0 loops in function.

The same happens if the type for a,b and c is "signed char".

But if the type is "unsigned short" or "unsigned char" the loop is vectorized.


-- 
           Summary: signed short plus and signed char plus not vectorized
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dann at godzilla dot ics dot uci dot edu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug tree-optimization/39069] signed short plus and signed char plus not vectorized
  2009-02-01 20:35 [Bug tree-optimization/39069] New: signed short plus and signed char plus not vectorized dann at godzilla dot ics dot uci dot edu
@ 2009-02-01 20:50 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-01 20:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2009-02-01 20:50 -------


*** This bug has been marked as a duplicate of 39068 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2009-02-01 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 20:35 [Bug tree-optimization/39069] New: signed short plus and signed char plus not vectorized dann at godzilla dot ics dot uci dot edu
2009-02-01 20:50 ` [Bug tree-optimization/39069] " rguenth at gcc dot gnu dot 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).