diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2013-09-09 13:06:53 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2013-09-09 13:06:53 +0000 |
commit | 2f1cd2ebd65eae6d87332c0bcd5d0e840c886cf3 (patch) | |
tree | 8a0c069c9c8784f5d1a4f0ad98b31f8275795896 /gcc/ifcvt.c | |
parent | 4789c0cef392722e1c084eba900c0c469fba3bc1 (diff) | |
download | gcc-2f1cd2ebd65eae6d87332c0bcd5d0e840c886cf3.zip gcc-2f1cd2ebd65eae6d87332c0bcd5d0e840c886cf3.tar.gz gcc-2f1cd2ebd65eae6d87332c0bcd5d0e840c886cf3.tar.bz2 |
asan.c (asan_clear_shadow): Use gen_int_mode with the mode of the associated expand_* call.
gcc/
* asan.c (asan_clear_shadow): Use gen_int_mode with the mode
of the associated expand_* call.
(asan_emit_stack_protection): Likewise.
* builtins.c (round_trampoline_addr): Likewise.
* explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
* expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
(emit_store_flag): Likewise.
* expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
(emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
Likewise.
* function.c (instantiate_virtual_regs_in_insn): Likewise.
* ifcvt.c (noce_try_store_flag_constants): Likewise.
* loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
* modulo-sched.c (generate_prolog_epilog): Likewise.
* optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
(expand_ctz, expand_ffs, expand_unop): Likewise.
From-SVN: r202392
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r-- | gcc/ifcvt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index 5698b4f..ebc4f1c 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -1162,8 +1162,8 @@ noce_try_store_flag_constants (struct noce_if_info *if_info) target = expand_simple_binop (mode, (diff == STORE_FLAG_VALUE ? PLUS : MINUS), - GEN_INT (ifalse), target, if_info->x, 0, - OPTAB_WIDEN); + gen_int_mode (ifalse, mode), target, + if_info->x, 0, OPTAB_WIDEN); } /* if (test) x = 8; else x = 0; @@ -1180,8 +1180,8 @@ noce_try_store_flag_constants (struct noce_if_info *if_info) else if (itrue == -1) { target = expand_simple_binop (mode, IOR, - target, GEN_INT (ifalse), if_info->x, 0, - OPTAB_WIDEN); + target, gen_int_mode (ifalse, mode), + if_info->x, 0, OPTAB_WIDEN); } /* if (test) x = a; else x = b; @@ -1189,11 +1189,11 @@ noce_try_store_flag_constants (struct noce_if_info *if_info) else { target = expand_simple_binop (mode, AND, - target, GEN_INT (diff), if_info->x, 0, - OPTAB_WIDEN); + target, gen_int_mode (diff, mode), + if_info->x, 0, OPTAB_WIDEN); if (target) target = expand_simple_binop (mode, PLUS, - target, GEN_INT (ifalse), + target, gen_int_mode (ifalse, mode), if_info->x, 0, OPTAB_WIDEN); } |