forked from OSchip/llvm-project
the second argument to __builtin_ia32_pslldqi128 must be an immediate,
so it needs to be called from a macro, not a function. This is a necessary but insufficient step towards fixing PR8221 llvm-svn: 115299
This commit is contained in:
parent
ca7c896b16
commit
81f347fe6d
|
@ -777,11 +777,8 @@ _mm_xor_si128(__m128i a, __m128i b)
|
|||
return a ^ b;
|
||||
}
|
||||
|
||||
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
|
||||
_mm_slli_si128(__m128i a, int imm)
|
||||
{
|
||||
return __builtin_ia32_pslldqi128(a, imm * 8);
|
||||
}
|
||||
#define _mm_slli_si128(VEC, IMM) \
|
||||
((__m128i)__builtin_ia32_pslldqi128(VEC, (IMM)*8))
|
||||
|
||||
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
|
||||
_mm_slli_epi16(__m128i a, int count)
|
||||
|
|
Loading…
Reference in New Issue