recent troubles with float vectors & bitwise ops

Tim Prince tprince@computer.org
Thu Aug 23 14:28:00 GMT 2007


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
...



More information about the Gcc mailing list