sseinline-assemblyintrinsicssse2mmx

load 32 bits from memory into xmm register


inline assembly:

__asm__("movd (%0), %%xmm1" : : "r"(some_pointer) :);

What is the equivalent intrinsics code?

__m128i foo = _mm_?????(some_pointer);

Solution

  • int32_t *foo_pointer;
    
    __m128i foo = _mm_cvtsi32_si128(*foo_pointer); // MOVD
    

    For future reference see the handy Intel Intrinsics Guide.