Creating llvmgcc42-2328.6 which is llvmgcc42-2328.5 + r103919.
llvm-svn: 104285
diff --git a/llvm-gcc-4.2/gcc/config/i386/llvm-i386.cpp b/llvm-gcc-4.2/gcc/config/i386/llvm-i386.cpp
index 43b1045..efe1ac3 100644
--- a/llvm-gcc-4.2/gcc/config/i386/llvm-i386.cpp
+++ b/llvm-gcc-4.2/gcc/config/i386/llvm-i386.cpp
@@ -661,7 +661,9 @@
}
case IX86_BUILTIN_PALIGNR128: {
if (ConstantInt *Elt = dyn_cast<ConstantInt>(Ops[2])) {
- unsigned shiftVal = cast<ConstantInt>(Ops[2])->getZExtValue();
+
+ // In the header we multiply by 8, correct that back now.
+ unsigned shiftVal = (cast<ConstantInt>(Ops[2])->getZExtValue())/8;
// If palignr is shifting the pair of input vectors less than 17 bytes,
// emit a shuffle instruction.