]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/29274 (not using mulsidi3)
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 22 Apr 2010 09:30:27 +0000 (09:30 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 22 Apr 2010 09:30:27 +0000 (09:30 +0000)
commit5b58b39b0a7d1c79b0d57e51199864f9a3685bb4
tree9248604cc9a0efe5af0b9ed453fe7110c80743c8
parent92375a2020b1f32bf7be92025493cebd9b3b4400
re PR middle-end/29274 (not using mulsidi3)

gcc/
PR middle-end/29274
* optabs.h (expand_widening_mult): Declare.
* tree-pass.h (pass_optimize_widening_mul): Declare.
* tree-ssa-math-opts.c (execute_optimize_widening_mul,
gate_optimize_widening_mul): New static functions.
(pass_optimize_widening_mul): New.
* expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New
case.
<case MULT_EXPR>: Remove support for widening multiplies.
* tree.def (WIDEN_MULT_EXPR): Tweak comment.
* cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
simplify_gen_unary rather than directly building extensions.
* tree-cfg.c (verify_gimple_assign_binary): Add tests for
WIDEN_MULT_EXPR.
* expmed.c (expand_widening_mult): New function.
* passes.c (init_optimization_passes): Add pass_optimize_widening_mul.

gcc/testsuite/
PR middle-end/29274
* gcc.target/i386/wmul-1.c: New test.
* gcc.target/i386/wmul-2.c: New test.
* gcc.target/bfin/wmul-1.c: New test.
* gcc.target/bfin/wmul-2.c: New test.

From-SVN: r158633
13 files changed:
gcc/ChangeLog
gcc/cfgexpand.c
gcc/expmed.c
gcc/expr.c
gcc/passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/bfin/wmul-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/bfin/wmul-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/wmul-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/wmul-2.c [new file with mode: 0644]
gcc/tree-cfg.c
gcc/tree-pass.h
gcc/tree-ssa-math-opts.c
This page took 0.055728 seconds and 5 git commands to generate.