Implementing shift left & shift right on pointers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-09 18:42:36 +00:00
parent 53e9983790
commit 743cd3e2b8

View 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";
}