I am trying to implement equivalent for x86 SSE4 pcmpestrm, pcmpestri instructions on Power PC.
Example code on x86 is like:
register volatile __m128i result asm("xmm0");
__asm__ volatile ("pcmpestrm %5, %2, %1"
: "=x"(result) : "x"(str1), "xm"(str2), "a"(len1), "d"(len2), "i"(MODE) : "cc");
Has anyone written something like this for Power PC? Any ideas on how I can implement something similar for the Power Architecture?