re PR tree-optimization/46346 (fma testsuite failures)

PR tree-optimization/46346
	* tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.

From-SVN: r166419
This commit is contained in:
Uros Bizjak 2010-11-07 18:49:11 +01:00
parent 604e92e2f1
commit bb3684703d
3 changed files with 19 additions and 14 deletions

View File

@ -1,3 +1,8 @@
2010-11-07 Uros Bizjak <ubizjak@gmail.com>
PR tree-optimization/46346
* tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c: Revert previous patch.
@ -85,8 +90,7 @@
2010-11-05 Ian Lance Taylor <iant@google.com>
* explow.c (allocate_dynamic_stack_space): Check
MALLOC_ABI_ALIGNMENT.
* explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
2010-11-05 Jakub Jelinek <jakub@redhat.com>
@ -98,8 +102,7 @@
PR target/46084
* explow.c (allocate_dynamic_stack_space): If flag_split_stack,
request enough additional space for alignment, and force
alignment.
request enough additional space for alignment, and force alignment.
2010-11-05 Kai Tietz <kai.tietz@onevision.com>
@ -209,8 +212,7 @@
2010-11-05 Jakub Jelinek <jakub@redhat.com>
* cfgexpand.c (expand_debug_expr): Handle MEM_REF
with non-zero offset.
* cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
PR tree-optimization/46099
* tree-parloops.c (take_address_of): Add GSI argument. Return NULL

View File

@ -100,7 +100,7 @@
* gcc.target/i386/387-2.c: Skip if -march= is specified.
* gcc.target/i386/387-6.c: Ditto.
* gcc.target/i386/387-2.c: Add -mfancy-math-387 to dg-options.
* gcc.target/i386/387-3.c: Add -mfancy-math-387 to dg-options.
* gcc.target/i386/387-4.c: Ditto.
* gcc.target/i386/387-7.c: Ditto.
* gcc.target/i386/387-8.c: Ditto.
@ -109,7 +109,7 @@
* gcc.target/i386/387-11.c: Ditto.
* gcc.target/i386/387-12.c: Ditto.
* gcc.target/i386/387-2.c: Add -mno-sse3 to dg-options.
* gcc.target/i386/funcspec-8.c: Add -mno-sse3 to dg-options.
2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
@ -217,8 +217,7 @@
2010-11-04 Bud Davis <jimmied@smu.edu>
* gfortran.dg/intrinsic_numeric_arg.f: Add test to check
error message.
* gfortran.dg/intrinsic_numeric_arg.f: Add test to check error message.
2010-11-04 Chao-ying Fu <fu@mips.com>

View File

@ -341,7 +341,11 @@ rhs_to_tree (tree type, gimple stmt)
{
location_t loc = gimple_location (stmt);
enum tree_code code = gimple_assign_rhs_code (stmt);
if (get_gimple_rhs_class (code) == GIMPLE_BINARY_RHS)
if (get_gimple_rhs_class (code) == GIMPLE_TERNARY_RHS)
return fold_build3_loc (loc, code, type, gimple_assign_rhs1 (stmt),
gimple_assign_rhs2 (stmt),
gimple_assign_rhs3 (stmt));
else if (get_gimple_rhs_class (code) == GIMPLE_BINARY_RHS)
return fold_build2_loc (loc, code, type, gimple_assign_rhs1 (stmt),
gimple_assign_rhs2 (stmt));
else if (get_gimple_rhs_class (code) == GIMPLE_UNARY_RHS)