mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 22:50:55 +00:00
Implement &|^ on bool values
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f87a198dcb
commit
669b76ae87
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user