]> git.ipfire.org Git - thirdparty/gcc.git/commit
[range-ops] Handle bitmasks for unary operators.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 25 Jul 2023 16:30:42 +0000 (12:30 -0400)
committerAldy Hernandez <aldyh@redhat.com>
Wed, 26 Jul 2023 08:38:37 +0000 (10:38 +0200)
commit5cac2394ef958945d80112b7d18673fce0c93872
tree7ef965dcd457ffd869269f64f92361e1e9744948
parent7a48d8d28cc683974057ce9fdfd3fb224ff76641
[range-ops] Handle bitmasks for unary operators.

It looks like we missed out on bitmasks for unary operators because we
were using bit_value_binop exclusively.  This patch hands off to
bit_value_unop when appropriate, thus allowing us to handle ABS and
BIT_NOT_EXPR, and others.  Follow-up patches will add the tweaks for the
range-ops entries themselves.

gcc/ChangeLog:

* range-op.cc (update_known_bitmask): Handle unary operators.
gcc/range-op.cc