]> git.ipfire.org Git - thirdparty/gcc.git/commit
Handle VIEW_CONVERT_EXPR for non-floats.
authorAndrew MacLeod <amacleod@redhat.com>
Sat, 25 Oct 2025 15:59:55 +0000 (11:59 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 29 Oct 2025 14:21:54 +0000 (10:21 -0400)
commit8b0e43d7ec87f53d5bbd0a2d4d876d0aa1327a33
tree46a465c2f98c1b953f60481d08b9ba1f257ce454
parentdd7dffb02ff5cd3a88654deacad67298ee8ed8fa
Handle VIEW_CONVERT_EXPR for non-floats.

Handle VIEW_CONVERT_EXPR for ranges as if it were a cast.

PR tree-optimization/91191
gcc/
* gimple-range-op.cc (gimple_range_op_handler): Descend one
operand lower for a VIEW_CONVERT_EXPR.
* range-op-mixed.h (class operator_view): New.
* range-op.cc (range_op_table): Add VIEW_CONVERT_EXPR case.
(operator_view::fold_range): New.
(operator_view::op1_range): New.
(operator_view::update_bitmask): New.

gcc/testsuite/
* gcc.dg/pr91191.c: New.
gcc/gimple-range-op.cc
gcc/range-op-mixed.h
gcc/range-op.cc
gcc/testsuite/gcc.dg/pr91191.c [new file with mode: 0644]