From 743cd3e2b8ea315a1b785187654ab3665128cba7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 Jul 2002 18:42:36 +0000 Subject: [PATCH] Implementing shift left & shift right on pointers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2844 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Execution.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 07ad8003c33..68379f4e168 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -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"; } -- 2.34.1