[llvm-commits] [llvm-gcc-4.2] r56777 - /llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
Evan Cheng
evan.cheng at apple.com
Sun Sep 28 22:35:57 PDT 2008
Author: evancheng
Date: Mon Sep 29 00:35:55 2008
New Revision: 56777
URL: http://llvm.org/viewvc/llvm-project?rev=56777&view=rev
Log:
Revert part of 56738 which changes the semantics of __builtin_ia32_psrldqi128 and __builtin_ia32_pslldqi128.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.c?rev=56777&r1=56776&r2=56777&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/i386.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.c Mon Sep 29 00:35:55 2008
@@ -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);
More information about the llvm-commits
mailing list