diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-10-05 11:35:07 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-10-05 11:35:07 +0000 |
commit | 5c88ea9456b266f202ee0a690b41f9a4e9558457 (patch) | |
tree | 931af8886409aa4886077746e7766455e9957e03 /gcc/tree-ssa-math-opts.c | |
parent | 8cb41028fe43dfc2a9c8c2a49deefb769fc1f5e4 (diff) | |
download | gcc-5c88ea9456b266f202ee0a690b41f9a4e9558457.zip gcc-5c88ea9456b266f202ee0a690b41f9a4e9558457.tar.gz gcc-5c88ea9456b266f202ee0a690b41f9a4e9558457.tar.bz2 |
Remove remaining uses of REAL_ARITHMETIC
This patch replaces all remaining uses of the old target macro
REAL_ARITHMETIC with calls to the (now generic) real_arithmetic
function.
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_arithmetic
instead of REAL_ARITHMETIC.
gcc/
* doc/tm.texi.in (REAL_ARITHMETIC): Delete.
* doc/tm.texi: Regenerate.
* real.h (REAL_ARITHMETIC): Delete.
* config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
(ix86_expand_round_sse4): Use real_arithmetic instead of
REAL_ARITHMETIC.
* config/i386/sse.md (round<mode>2): Likewise.
* rtl.h (rtx_to_tree_code): Likewise (in comment).
* explow.c (rtx_to_tree_code): Likewise (in comment).
* match.pd: Likewise.
* simplify-rtx.c (simplify_binary_operation_1): Likewise.
* tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
(expand_pow_as_sqrts): Likewise.
* tree-pretty-print.c (dump_generic_node): Remove code that
was conditional on REAL_ARITHMETIC being undefined.
From-SVN: r228476
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index 63245fc..39c027c 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -1140,7 +1140,7 @@ representable_as_half_series_p (REAL_VALUE_TYPE c, unsigned n, REAL_VALUE_TYPE res; /* If something inexact happened bail out now. */ - if (REAL_ARITHMETIC (res, MINUS_EXPR, remainder, factor)) + if (real_arithmetic (&res, MINUS_EXPR, &remainder, &factor)) return false; /* We have hit zero. The number is representable as a sum @@ -1160,7 +1160,7 @@ representable_as_half_series_p (REAL_VALUE_TYPE c, unsigned n, else info->factors[i] = false; - REAL_ARITHMETIC (factor, MULT_EXPR, factor, dconsthalf); + real_arithmetic (&factor, MULT_EXPR, &factor, &dconsthalf); } return false; } @@ -1317,7 +1317,7 @@ expand_pow_as_sqrts (gimple_stmt_iterator *gsi, location_t loc, REAL_VALUE_TYPE frac_part; real_floor (&whole_part, mode, &exp); - REAL_ARITHMETIC (frac_part, MINUS_EXPR, exp, whole_part); + real_arithmetic (&frac_part, MINUS_EXPR, &exp, &whole_part); REAL_VALUE_TYPE ceil_whole = dconst0; @@ -1326,7 +1326,7 @@ expand_pow_as_sqrts (gimple_stmt_iterator *gsi, location_t loc, if (neg_exp) { real_ceil (&ceil_whole, mode, &exp); - REAL_ARITHMETIC (ceil_fract, MINUS_EXPR, ceil_whole, exp); + real_arithmetic (&ceil_fract, MINUS_EXPR, &ceil_whole, &exp); } if (!representable_as_half_series_p (frac_part, max_depth, &synth_info)) |