diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-23 19:21:00 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 19:21:00 +0000 |
commit | 669b76ae875fe11f0a47463bceff18db0ae38fcf (patch) | |
tree | 77e82c852e664f1e3996b8bfec6cfa25abb46808 /lib/ExecutionEngine | |
parent | f87a198dcbaf95a6608b1484b42c6044d61003f6 (diff) | |
download | external_llvm-669b76ae875fe11f0a47463bceff18db0ae38fcf.zip external_llvm-669b76ae875fe11f0a47463bceff18db0ae38fcf.tar.gz external_llvm-669b76ae875fe11f0a47463bceff18db0ae38fcf.tar.bz2 |
Implement &|^ on bool values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5884 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index ec37ad7..6542111 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -286,6 +286,7 @@ static GenericValue executeAndInst(GenericValue Src1, GenericValue Src2, const Type *Ty) { GenericValue Dest; switch (Ty->getPrimitiveID()) { + IMPLEMENT_BINARY_OPERATOR(&, Bool); IMPLEMENT_BINARY_OPERATOR(&, UByte); IMPLEMENT_BINARY_OPERATOR(&, SByte); IMPLEMENT_BINARY_OPERATOR(&, UShort); @@ -306,6 +307,7 @@ static GenericValue executeOrInst(GenericValue Src1, GenericValue Src2, const Type *Ty) { GenericValue Dest; switch (Ty->getPrimitiveID()) { + IMPLEMENT_BINARY_OPERATOR(|, Bool); IMPLEMENT_BINARY_OPERATOR(|, UByte); IMPLEMENT_BINARY_OPERATOR(|, SByte); IMPLEMENT_BINARY_OPERATOR(|, UShort); @@ -326,6 +328,7 @@ static GenericValue executeXorInst(GenericValue Src1, GenericValue Src2, const Type *Ty) { GenericValue Dest; switch (Ty->getPrimitiveID()) { + IMPLEMENT_BINARY_OPERATOR(^, Bool); IMPLEMENT_BINARY_OPERATOR(^, UByte); IMPLEMENT_BINARY_OPERATOR(^, SByte); IMPLEMENT_BINARY_OPERATOR(^, UShort); |