public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/32168] New: vectorizer doesn't handle vector condition with simple assignment
@ 2007-05-31 17:54 hjl at lucon dot org
2007-05-31 18:12 ` [Bug tree-optimization/32168] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: hjl at lucon dot org @ 2007-05-31 17:54 UTC (permalink / raw)
To: gcc-bugs
[hjl@gnu-2 vect]$ cat x.c
typedef char vec_t;
extern __attribute__((aligned(16))) vec_t x [64];
extern __attribute__((aligned(16))) vec_t y [64];
extern __attribute__((aligned(16))) vec_t m [64];
void
foo1 ()
{
int i;
for (i = 0; i < 64; i++)
m [i] = x [i] == y [i] ? 1 : 2;
}
void
foo2 ()
{
int i;
for (i = 0; i < 64; i++)
m [i] = x [i] == y [i];
}
[hjl@gnu-2 vect]$ /export/build/gnu/gcc-nni/build-x86_64-linux/gcc/xgcc -B./
-B/export/build/gnu/gcc-nni/build-x86_64-linux/gcc/ -O2 -msse4.2
-ftree-vectorize -ftree-vectorizer-verbose=3 -S x.c
x.c:12: note: LOOP VECTORIZED.
x.c:9: note: vectorized 1 loops in function.
x.c:21: note: not vectorized: stmt not supported: D.2111_8 = D.2109_5 ==
D.2110_7
x.c:18: note: vectorized 0 loops in function.
[hjl@gnu-2 vect]$
m [i] = x [i] == y [i] ? 1 : 2;
works. But
m [i] = x [i] == y [i];
doesn't work.
--
Summary: vectorizer doesn't handle vector condition with simple
assignment
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl at lucon dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32168
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/32168] vectorizer doesn't handle vector condition with simple assignment
2007-05-31 17:54 [Bug tree-optimization/32168] New: vectorizer doesn't handle vector condition with simple assignment hjl at lucon dot org
@ 2007-05-31 18:12 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-31 18:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-31 18:11 -------
*** This bug has been marked as a duplicate of 21997 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32168
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-31 18:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-31 17:54 [Bug tree-optimization/32168] New: vectorizer doesn't handle vector condition with simple assignment hjl at lucon dot org
2007-05-31 18:12 ` [Bug tree-optimization/32168] " pinskia 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).