aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-09-21 12:56:50 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-09-21 12:56:50 +0000
commit681fc0fa40cc4f018cb691d796aa819a24257774 (patch)
tree1a8c7cd272154e48ea4d73bc50268b21cd13050b /gcc/ada
parentb2addbf403fe60091ed4d2363cb36938b75b4892 (diff)
downloadgcc-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')
0 files changed, 0 insertions, 0 deletions