From 09b526703562a475d28e7a490e56dddb1edbe961 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Mon, 5 Jul 2004 21:57:44 +0000 Subject: calls.c (load_register_parameters): Call expand_shift instead of expand_binop with ashl_optab (or other shift... * calls.c (load_register_parameters): Call expand_shift instead of expand_binop with ashl_optab (or other shift optab) directly. * expr.c (emit_group_load, emit_group_store): Likewise. * function.c (assign_parm_setup_block): Likewise. * stmt.c (shift_return_value): Likewise. From-SVN: r84134 --- gcc/expr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/expr.c') diff --git a/gcc/expr.c b/gcc/expr.c index b5feed7..e040444 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -1923,8 +1923,8 @@ emit_group_load (rtx dst, rtx orig_src, tree type ATTRIBUTE_UNUSED, int ssize) mode, mode, ssize); if (shift) - expand_binop (mode, ashl_optab, tmps[i], GEN_INT (shift), - tmps[i], 0, OPTAB_WIDEN); + tmps[i] = expand_shift (LSHIFT_EXPR, mode, tmps[i], + build_int_2 (shift, 0), tmps[i], 0); } emit_queue (); @@ -2037,8 +2037,8 @@ emit_group_store (rtx orig_dst, rtx src, tree type ATTRIBUTE_UNUSED, int ssize) ) { int shift = (bytelen - (ssize - bytepos)) * BITS_PER_UNIT; - expand_binop (mode, ashr_optab, tmps[i], GEN_INT (shift), - tmps[i], 0, OPTAB_WIDEN); + tmps[i] = expand_shift (RSHIFT_EXPR, mode, tmps[i], + build_int_2 (shift, 0), tmps[i], 0); } bytelen = ssize - bytepos; } -- cgit v1.1