Implementing shift left & shift right on pointers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2844 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 07ad800..68379f4 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -958,6 +958,7 @@
IMPLEMENT_SHIFT(<<, Int);
IMPLEMENT_SHIFT(<<, ULong);
IMPLEMENT_SHIFT(<<, Long);
+ IMPLEMENT_SHIFT(<<, Pointer);
default:
cout << "Unhandled type for Shl instruction: " << Ty << "\n";
}
@@ -979,6 +980,7 @@
IMPLEMENT_SHIFT(>>, Int);
IMPLEMENT_SHIFT(>>, ULong);
IMPLEMENT_SHIFT(>>, Long);
+ IMPLEMENT_SHIFT(>>, Pointer);
default:
cout << "Unhandled type for Shr instruction: " << Ty << "\n";
}