gcc/ChangeLog:
* range-op-mixed.h (class operator_bitwise_not): Add update_bitmask.
* range-op.cc (operator_bitwise_not::update_bitmask): New.
bool op1_range (irange &r, tree type,
const irange &lhs, const irange &op2,
relation_trio rel = TRIO_VARYING) const final override;
+ void update_bitmask (irange &r, const irange &lh,
+ const irange &rh) const final override;
};
class operator_bitwise_xor : public range_operator
return fold_range (r, type, lhs, op2);
}
+void
+operator_bitwise_not::update_bitmask (irange &r, const irange &lh,
+ const irange &rh) const
+{
+ update_known_bitmask (r, BIT_NOT_EXPR, lh, rh);
+}
+
bool
operator_cst::fold_range (irange &r, tree type ATTRIBUTE_UNUSED,