Implement bit operations.

This commit is contained in:
chriseth
2020-04-16 00:33:45 +02:00
parent 10879bcae6
commit 06adbc2c59
2 changed files with 28 additions and 0 deletions
@@ -1537,6 +1537,15 @@ string IRGeneratorForStatements::binaryOperation(
case Token::Mod:
fun = m_utils.checkedIntModFunction(*type);
break;
case Token::BitOr:
fun = "or";
break;
case Token::BitXor:
fun = "xor";
break;
case Token::BitAnd:
fun = "and";
break;
default:
break;
}