Skip to content

Commit

Permalink
Support LAND, LIOR
Browse files Browse the repository at this point in the history
  • Loading branch information
shinmingliu committed Oct 31, 2023
1 parent fa4d032 commit d3527dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osprey/ir_tools/whirl2llvm.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2983,9 +2983,11 @@ WHIRL2llvm::CreateBinary(WN *wn)

switch (opr) {
case OPR_BAND:
case OPR_LAND:
bin = Lvbuilder()->CreateAnd(lhs, rhs);
break;
case OPR_BIOR:
case OPR_LIOR:
bin = Lvbuilder()->CreateOr(lhs, rhs);
break;
case OPR_BXOR:
Expand Down Expand Up @@ -5295,8 +5297,6 @@ LVVAL *WHIRL2llvm::EXPR2llvm(WN *wn, WN *parent) {
}
case OPR_LAND:
case OPR_LIOR:
FmtAssert(FALSE, ("WHIRL2llvm::EXPR2llvm, operator %s not handled", OPERATOR2name(opr)));
break;
case OPR_MIN:
case OPR_MAX:
case OPR_BAND:
Expand Down

0 comments on commit d3527dd

Please sign in to comment.