cpu_vsx2.c 263 B

12345678910111213
  1. #ifndef __VSX__
  2. #error "VSX is not supported"
  3. #endif
  4. #include <altivec.h>
  5. typedef __vector unsigned long long v_uint64x2;
  6. int main(void)
  7. {
  8. v_uint64x2 z2 = (v_uint64x2){0, 0};
  9. z2 = (v_uint64x2)vec_cmpeq(z2, z2);
  10. return (int)vec_extract(z2, 0);
  11. }