cpu_vsx3.c 250 B

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