]> git.ipfire.org Git - thirdparty/gcc.git/commit
expand: Allow fixed-point arithmetic for RDIV_EXPR.
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 15 Jul 2025 08:55:36 +0000 (10:55 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Wed, 16 Jul 2025 07:30:07 +0000 (09:30 +0200)
commit4648fe556e26d54abfc863ebb2ed046f1a260fdb
treed492a83e6e28dcf2bed1d0227cae3f6e1f7991b7
parent9041f2bff8202d9b87d8c27f21e4ffa8d50b36a3
expand: Allow fixed-point arithmetic for RDIV_EXPR.

r16-2175-g5aa21765236730 introduced an assert for floating-point modes
when expanding an RDIV_EXPR but forgot fixed-point modes.  This patch
adds ALL_FIXED_POINT_MODE_P to the assert.

PR middle-end/121065

gcc/ChangeLog:

* cfgexpand.cc (expand_debug_expr): Allow fixed-point modes for
RDIV_EXPR.
* optabs-tree.cc (optab_for_tree_code): Ditto.

gcc/testsuite/ChangeLog:

* gcc.target/arm/pr121065.c: New test.
gcc/cfgexpand.cc
gcc/optabs-tree.cc
gcc/testsuite/gcc.target/arm/pr121065.c [new file with mode: 0644]