x86 Intrinsics in GCC 4.2 (_mm_slli_epi32)

Diego Novillo dnovillo@google.com
Wed Aug 1 18:13:00 GMT 2007


On 8/1/07 1:49 PM, Mike Lewis wrote:

> I'm having an issue getting my software to compile with GCC 4.2.  I
> use x86 intrinsics such as _mm_slli_epi32 and I pass the second
> parameter as a variable.  This works fine with GCC 4.1, and ICC 9.1.
> Now, with GCC 4.2 I get "error: shift must be an immediate" for the
> lines.

Could you post the test case?  If GCC is not propagating an immediate
constant into the intrinsic call, you will get this message.



More information about the Gcc-help mailing list