Add intrinsics to match mmx shift builtin's with immediate operand.
[oota-llvm.git] / lib / VMCore / AutoUpgrade.cpp
index 343a4b6431b2ee72bed92d8077b368a0ee2cccaf..a46138a612b372afa9dcc1286182ca56a3c31d58 100644 (file)
@@ -122,7 +122,8 @@ static bool UpgradeIntrinsicFunction1(Function *F, Function *&NewFn) {
     if (Name.compare(5,10,"x86.mmx.ps",10) == 0 &&
         (Name.compare(13,4,"psll", 4) == 0 ||
          Name.compare(13,4,"psra", 4) == 0 ||
-         Name.compare(13,4,"psrl", 4) == 0)) {
+         Name.compare(13,4,"psrl", 4) == 0) &&
+        Name[17] != 'i') {
       
       const llvm::Type *VT = VectorType::get(IntegerType::get(64), 1);