This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: recent troubles with float vectors & bitwise ops
Paolo Bonzini wrote:
I'm curious, does ICC support vector arithmetic like this?
The primary icc/icl use of SSE/SSE2 masking operations, of course, is in
the auto-vectorization of fabs[f] and conditional operations:
sum = 0.f;
i__2 = *n;
for (i__ = 1; i__ <= i__2; ++i__)
if (a[i__] > 0.f)
sum += a[i__];
.... (Windows/intel asm syntax)
pxor xmm2, xmm2
cmpltps xmm2, xmm3
andps xmm3, xmm2
addps xmm0, xmm3
...