aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-unroll.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/loop-unroll.c')
-rw-r--r--gcc/loop-unroll.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/loop-unroll.c b/gcc/loop-unroll.c
index ad26f3d..84902bf 100644
--- a/gcc/loop-unroll.c
+++ b/gcc/loop-unroll.c
@@ -1166,8 +1166,7 @@ unroll_loop_runtime_iterations (struct loop *loop)
the number of unrollings is a power of two, and thus this is correct
even if there is overflow in the computation. */
niter = expand_simple_binop (desc->mode, AND,
- niter,
- GEN_INT (max_unroll),
+ niter, gen_int_mode (max_unroll, desc->mode),
NULL_RTX, 0, OPTAB_LIB_WIDEN);
init_code = get_insns ();