diff options
author | Uros Bizjak <uros@gcc.gnu.org> | 2016-07-19 18:40:55 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2016-07-19 18:40:55 +0200 |
commit | fecfbfa4a290992437a99977381e29815ed9199d (patch) | |
tree | d187dacf2ba515208c78754cda80de5b3a012926 /gcc/tree-vect-patterns.c | |
parent | 5989388cdfa7b757a9aab117f4dcabea147050a8 (diff) | |
download | gcc-fecfbfa4a290992437a99977381e29815ed9199d.zip gcc-fecfbfa4a290992437a99977381e29815ed9199d.tar.gz gcc-fecfbfa4a290992437a99977381e29815ed9199d.tar.bz2 |
builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1...
* builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
* combine.c: Ditto.
* cse.c: Ditto.
* dojump.c: Ditto.
* double-int.c: Ditto.
* dse.c: Ditto.
* dwarf2out.c: Ditto.
* expmed.c: Ditto.
* expr.c: Ditto.
* fold-const.c: Ditto.
* function.c: Ditto.
* fwprop.c: Ditto.
* genmodes.c: Ditto.
* hwint.c: Ditto.
* hwint.h: Ditto.
* ifcvt.c: Ditto.
* loop-doloop.c: Ditto.
* loop-invariant.c: Ditto.
* loop-iv.c: Ditto.
* match.pd: Ditto.
* optabs.c: Ditto.
* real.c: Ditto.
* reload.c: Ditto.
* rtlanal.c: Ditto.
* simplify-rtx.c: Ditto.
* stor-layout.c: Ditto.
* toplev.c: Ditto.
* tree-ssa-loop-ivopts.c: Ditto.
* tree-vect-generic.c: Ditto.
* tree-vect-patterns.c: Ditto.
* tree.c: Ditto.
* tree.h: Ditto.
* ubsan.c: Ditto.
* varasm.c: Ditto.
* wide-int-print.cc: Ditto.
* wide-int.cc: Ditto.
* wide-int.h: Ditto.
From-SVN: r238481
Diffstat (limited to 'gcc/tree-vect-patterns.c')
-rw-r--r-- | gcc/tree-vect-patterns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index 3be1b89..d78f92d 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -2724,7 +2724,7 @@ vect_recog_divmod_pattern (vec<gimple *> *stmts, & GET_MODE_MASK (TYPE_MODE (itype))); tree t1, t2, t3, t4; - if (d >= ((unsigned HOST_WIDE_INT) 1 << (prec - 1))) + if (d >= (HOST_WIDE_INT_1U << (prec - 1))) /* FIXME: Can transform this into oprnd0 >= oprnd1 ? 1 : 0. */ return NULL; @@ -2853,12 +2853,12 @@ vect_recog_divmod_pattern (vec<gimple *> *stmts, oprnd1 = build_int_cst (itype, abs_d); } else if (HOST_BITS_PER_WIDE_INT >= prec - && abs_d == (unsigned HOST_WIDE_INT) 1 << (prec - 1)) + && abs_d == HOST_WIDE_INT_1U << (prec - 1)) /* This case is not handled correctly below. */ return NULL; choose_multiplier (abs_d, prec, prec - 1, &ml, &post_shift, &dummy_int); - if (ml >= (unsigned HOST_WIDE_INT) 1 << (prec - 1)) + if (ml >= HOST_WIDE_INT_1U << (prec - 1)) { add = true; ml |= (~(unsigned HOST_WIDE_INT) 0) << (prec - 1); |