diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-09 18:42:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-09 18:42:36 +0000 |
commit | f6d3cb95cfe809b2bc0d32ebbd150b4addd9b23b (patch) | |
tree | 0e0c580ba912ce274bc09b0f2795c742fd96a775 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | d6e237ff52d82c09c110495ad8805abf12ad975d (diff) | |
download | bcm5719-llvm-f6d3cb95cfe809b2bc0d32ebbd150b4addd9b23b.tar.gz bcm5719-llvm-f6d3cb95cfe809b2bc0d32ebbd150b4addd9b23b.zip |
Implementing shift left & shift right on pointers
llvm-svn: 2844
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 07ad8003c33..68379f4e168 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/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"; } |