title: If statements with comparison SSE in C
body: <p>I want to achieve this:</p>
  
  <pre><code>for (int i=0;i&lt;n,i++){
    if (x[i] &gt; 2.0f || x[i] &lt; -2.0f) 
       a[i] += x[i]; 
  }
  </code></pre>
  
  <p>I have gone this far but don't know what to do next:</p>
  
  <pre><code>__m128 P2f = _mm_set1_ps(2.0f);
  __m128 M2f = _mm_set1_ps(-2.0f);
  for(int i=0;i&lt;n,i+=4){
  __m128 xv = _mm_load_ps(x+i);
  __m128 av = _mm_load_ps(a+i);
  
  __m128 c1 = _mm_cmpgt_ps(xv, P2f);
  __m128 c2 = _mm_cmplt_ps(xv, M2f);
  
  __m128 or = _mm_or_ps(c1,c2);
      =???==
  av = _mm_add_ps(av, xv);
  _mm_store_ps(a+i, av);
  }
  </code></pre>