Commit b63f974e by Jakub Jelinek Committed by Jakub Jelinek

re PR target/47665 (ICE in trunc_int_for_mode)

	PR target/47665
	* combine.c (make_compound_operation): Only change shifts into
	multiplication for SCALAR_INT_MODE_P.

	* gcc.target/i386/pr47665.c: New test.

From-SVN: r170050
parent 84b44e0f
2011-02-11 Jakub Jelinek <jakub@redhat.com>
PR target/47665
* combine.c (make_compound_operation): Only change shifts into
multiplication for SCALAR_INT_MODE_P.
2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR testsuite/47400 PR testsuite/47400
......
2011-02-11 Jakub Jelinek <jakub@redhat.com>
PR target/47665
* gcc.target/i386/pr47665.c: New test.
2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR target/47629 PR target/47629
......
/* PR debug/47684 */
/* { dg-do compile } */
/* { dg-options "-O3 -fcompare-debug" } */
int in[8][4];
int out[4];
void
foo (void)
{
int sum = 1;
int i, j, k;
for (k = 0; k < 4; k++)
{
for (j = 0; j < 4; j++)
for (i = 0; i < 4; i++)
sum *= in[i + k][j];
out[k] = sum;
}
}
/* Predictive commoning. /* Predictive commoning.
Copyright (C) 2005, 2007, 2008, 2009, 2010 Copyright (C) 2005, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc. Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
...@@ -1668,6 +1668,8 @@ single_nonlooparound_use (tree name) ...@@ -1668,6 +1668,8 @@ single_nonlooparound_use (tree name)
return NULL; return NULL;
} }
else if (is_gimple_debug (stmt))
continue;
else if (ret != NULL) else if (ret != NULL)
return NULL; return NULL;
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment