Revert part of 56738 which changes the semantics of __builtin_ia32_psrldqi128 and __builtin_ia32_pslldqi128.
llvm-svn: 56777
diff --git a/llvm-gcc-4.2/gcc/config/i386/i386.c b/llvm-gcc-4.2/gcc/config/i386/i386.c
index f00118e..46a6bf9 100644
--- a/llvm-gcc-4.2/gcc/config/i386/i386.c
+++ b/llvm-gcc-4.2/gcc/config/i386/i386.c
@@ -18178,17 +18178,6 @@
mode1 = insn_data[icode].operand[1].mode;
mode2 = insn_data[icode].operand[2].mode;
- /* APPLE LOCAL begin 591583 */
- if (! CONST_INT_P (op1))
- {
- error ("shift must be an immediate");
- return const0_rtx;
- }
- /* The _mm_srli_si128/_mm_slli_si128 primitives are defined with
- a byte-shift count; inside of GCC, we prefer to specify the
- width of a shift in bits. */
- op1 = gen_rtx_CONST_INT (SImode, INTVAL (op1) * 8);
- /* APPLE LOCAL end 591583 */
if (! (*insn_data[icode].operand[1].predicate) (op0, mode1))
{
op0 = copy_to_reg (op0);