Converting assembly code to intrinsic code?

158 views Asked by At

I have code in assembly which takes single floats, stores them in zmm registers. Then, it loads them, makes them into 32bit integers.

"vbroadcastss (%0), %%zmm2\n\t" 
"vbroadcastss (%1), %%zmm1\n\t"
"vpmovzxbd (%2,%3), %%zmm0\n\t"

I want to convert this into intrinsics using this:

 __m512 _mm512_broadcastss_ps (__m128 a)

and

__m512i _mm512_cvtepu8_epi32 (__m128i a)

I'm not sure how to use registers in intrinsics. How can I express (%0), (%1), (%2) elements in intrinsics?

0

There are 0 answers