Implementing shift left & shift right on pointers
authorChris Lattner <sabre@nondot.org>
Tue, 9 Jul 2002 18:42:36 +0000 (18:42 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Jul 2002 18:42:36 +0000 (18:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2844 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index 07ad8003c332e91ee33c2e431c890bff76fba6e4..68379f4e168b771b6913bbc133906684d8d630e5 100644 (file)
@@ -958,6 +958,7 @@ static void executeShlInst(ShiftInst &I, ExecutionContext &SF) {
     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 @@ static void executeShrInst(ShiftInst &I, ExecutionContext &SF) {
     IMPLEMENT_SHIFT(>>, Int);
     IMPLEMENT_SHIFT(>>, ULong);
     IMPLEMENT_SHIFT(>>, Long);
+    IMPLEMENT_SHIFT(>>, Pointer);
   default:
     cout << "Unhandled type for Shr instruction: " << Ty << "\n";
   }