diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-09-21 12:56:50 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-09-21 12:56:50 +0000 |
commit | 681fc0fa40cc4f018cb691d796aa819a24257774 (patch) | |
tree | 1a8c7cd272154e48ea4d73bc50268b21cd13050b /gcc/ada/gcc-interface/trans.c | |
parent | b2addbf403fe60091ed4d2363cb36938b75b4892 (diff) | |
download | gcc-681fc0fa40cc4f018cb691d796aa819a24257774.zip gcc-681fc0fa40cc4f018cb691d796aa819a24257774.tar.gz gcc-681fc0fa40cc4f018cb691d796aa819a24257774.tar.bz2 |
Extend neg_const_int simplifications to other const rtxes
This patch generalises some neg_const_int-based rtx simplifications
so that they handle all CONST_SCALAR_INTs and also CONST_POLY_INT.
This actually simplifies things a bit, since we no longer have
to treat HOST_WIDE_INT_MIN specially.
This is tested by later SVE patches.
2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* simplify-rtx.c (neg_const_int): Replace with...
(neg_poly_int_rtx): ...this new function.
(simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
to all CONST_SCALAR_INTs and to CONST_POLY_INT.
(simplify_plus_minus): Likewise for constant terms here.
From-SVN: r276017
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
0 files changed, 0 insertions, 0 deletions