expmed.c (expand_mult_const): Expand shift into temporary.
2010-08-06 Uros Bizjak <ubizjak@gmail.com> * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into temporary. Emit move from temporary to accum, so REG_EQUAL note will be attached to this insn in correct mode. 2010-08-06 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386.c (ix86_decompose_address): Check for SI_REG using REGNO of base_reg directly. From-SVN: r162940
This commit is contained in:
parent
4030ae76ca
commit
2b350c1006
|
@ -1,3 +1,14 @@
|
|||
2010-08-06 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
|
||||
temporary. Emit move from temporary to accum, so REG_EQUAL note will
|
||||
be attached to this insn in correct mode.
|
||||
|
||||
2010-08-06 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
* config/i386/i386.c (ix86_decompose_address): Check for SI_REG
|
||||
using REGNO of base_reg directly.
|
||||
|
||||
2010-08-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||
|
||||
* config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
|
||||
|
|
|
@ -8884,8 +8884,7 @@ ix86_decompose_address (rtx addr, struct ix86_address *out)
|
|||
to test cfun for being non-NULL. */
|
||||
if (TARGET_K6 && cfun && optimize_function_for_speed_p (cfun)
|
||||
&& base_reg && !index_reg && !disp
|
||||
&& REG_P (base_reg)
|
||||
&& REGNO_REG_CLASS (REGNO (base_reg)) == SIREG)
|
||||
&& REG_P (base_reg) && REGNO (base_reg) == SI_REG)
|
||||
disp = const0_rtx;
|
||||
|
||||
/* Special case: encode reg+reg instead of reg*2. */
|
||||
|
|
|
@ -2931,9 +2931,11 @@ expand_mult_const (enum machine_mode mode, rtx op0, HOST_WIDE_INT val,
|
|||
switch (alg->op[opno])
|
||||
{
|
||||
case alg_shift:
|
||||
accum = expand_shift (LSHIFT_EXPR, mode, accum,
|
||||
build_int_cst (NULL_TREE, log),
|
||||
NULL_RTX, 0);
|
||||
tem = expand_shift (LSHIFT_EXPR, mode, accum,
|
||||
build_int_cst (NULL_TREE, log),
|
||||
NULL_RTX, 0);
|
||||
/* REG_EQUAL note will be attached to the following insn. */
|
||||
emit_move_insn (accum, tem);
|
||||
val_so_far <<= log;
|
||||
break;
|
||||
|
||||
|
|
|
@ -320,7 +320,7 @@
|
|||
|
||||
2009-10-03 Ben Elliston <bje@au.ibm.com>
|
||||
Janis Johnson <janis187@us.ibm.com>
|
||||
Diego Novillo <dnovillo@google.com>
|
||||
Diego Novillo <dnovillo@google.com>
|
||||
|
||||
* lib/c-torture.exp: Load target-supports.exp.
|
||||
|
||||
|
|
Loading…
Reference in New Issue