title: On Powerpc, is there any equivalent of intel's movemask intrinsics?
body: <p>I'd like to merge all elements in a __vector bool long long into a single int, in which each bit is set to the most significant bit of the input vector</p>
  
  <p>example: </p>
  
  <pre><code>__vector bool long long vcmp = vec_cmplt(a, b);
  int packedmask = /*SOME FUNCTION GOES HERE*/ (vcmp);
  </code></pre>
  
  <p>with </p>
  
  <pre><code>packedmask = x|y|0000000000000000....
  </code></pre>
  
  <p>where x equals 1 if vcmd[0] = 0XFFFFF... or 0 if vcmp[0] = 0;
  same for y. </p>
  
  <p>On intel , we can achieve this by using _mm_movemask instructions (<a href="https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=_mm256_movemask_ps&amp;expand=3578,3578" rel="nofollow">intrinsic for intel</a>)</p>
  
  <p>Is there any way to do the same on PowerPC?</p>
  
  <p>Thank you for any help </p>