This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50596] Problems in vectorization of condition expression
- From: "vincenzo.innocente at cern dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 03 Oct 2011 08:40:53 +0000
- Subject: [Bug tree-optimization/50596] Problems in vectorization of condition expression
- Auto-submitted: auto-generated
- References: <bug-50596-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50596
--- Comment #1 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 2011-10-03 08:40:53 UTC ---
manage to vectorize this
int j[1024];
void foo5() {
for (int i=0; i!=N; ++i)
j[i] = (a[i]<b[i] ? -1 : 0) & (c[i]<d[i] ? -1 : 0);
}
which is not bad, still a funny syntax (at least for those who are not used to
code in native SSE)