diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-05 11:32:25 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-05 11:32:25 +0000 |
commit | 1b67971e30fd4316632b5efc601637740ecd373f (patch) | |
tree | 59a7bf6d45465bd7aba6bc0b93caa118f046c666 /gcc/simplify-rtx.c | |
parent | a417188d791c5ffb8a0c3219ae61cbe2a89623c9 (diff) | |
download | gcc-1b67971e30fd4316632b5efc601637740ecd373f.tar.gz |
Replace REAL_VALUES_LESS with real_less
This patch continues the removal of real-related macros by
replacing REAL_VALUES_LESS with real_less.
Bootstrapped & regression-tested on x86_64-linux-gnu. Also tested by
building one target per CPU directory and checking that there were
no new warnings and no changes in testsuite output at -O2.
gcc/ada/
* gcc-interface/trans.c (convert_with_check): Use real_less instead
of REAL_VALUES_LESS.
gcc/
* doc/tm.texi.in (REAL_VALUES_LESS): Delete.
* doc/tm.texi: Regenerate.
* real.h (real_less): Declare.
(REAL_VALUES_LESS): Delete.
* real.c (real_less): New function.
(real_compare): Use it.
* config/m68k/m68k.c (floating_exact_log2): Use real_less instead
of REAL_VALUES_LESS.
* config/microblaze/microblaze.c (microblaze_const_double_ok):
Likewise.
* fold-const.c (fold_convert_const_int_from_real): Likewise.
* simplify-rtx.c (simplify_const_unary_operation): Likewise.
(simplify_const_relational_operation): Likewise.
* tree-call-cdce.c (check_pow): Likewise.
(gen_conditions_for_pow_cst_base): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228475 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r-- | gcc/simplify-rtx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index b4d95a22a61..9f791a7f774 100644 --- a/gcc/simplify-rtx.c +++ b/gcc/simplify-rtx.c @@ -1862,13 +1862,13 @@ simplify_const_unary_operation (enum rtx_code code, machine_mode mode, /* Test against the signed upper bound. */ wmax = wi::max_value (width, SIGNED); real_from_integer (&t, VOIDmode, wmax, SIGNED); - if (REAL_VALUES_LESS (t, x)) + if (real_less (&t, &x)) return immed_wide_int_const (wmax, mode); /* Test against the signed lower bound. */ wmin = wi::min_value (width, SIGNED); real_from_integer (&t, VOIDmode, wmin, SIGNED); - if (REAL_VALUES_LESS (x, t)) + if (real_less (&x, &t)) return immed_wide_int_const (wmin, mode); return immed_wide_int_const (real_to_integer (&x, &fail, width), mode); @@ -1881,7 +1881,7 @@ simplify_const_unary_operation (enum rtx_code code, machine_mode mode, /* Test against the unsigned upper bound. */ wmax = wi::max_value (width, UNSIGNED); real_from_integer (&t, VOIDmode, wmax, UNSIGNED); - if (REAL_VALUES_LESS (t, x)) + if (real_less (&t, &x)) return immed_wide_int_const (wmax, mode); return immed_wide_int_const (real_to_integer (&x, &fail, width), @@ -4943,7 +4943,7 @@ simplify_const_relational_operation (enum rtx_code code, return comparison_result (code, (real_equal (&d0, &d1) ? CMP_EQ : - REAL_VALUES_LESS (d0, d1) ? CMP_LT : CMP_GT)); + real_less (&d0, &d1) ? CMP_LT : CMP_GT)); } /* Otherwise, see if the operands are both integers. */ |