re PR target/49987 (gcc.c-torture/compile/pr34856.c fails on powerpc-darwin9 from r176228)
gcc/ PR target/49987 * config/rs6000/rs6000.c (paired_expand_vector_init): Check for valid CONST_VECTOR operands. (rs6000_expand_vector_init): Likewise. From-SVN: r178474
This commit is contained in:
parent
0217ac04cb
commit
42ea8b2790
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2011-09-02 Richard Sandiford <richard.sandiford@linaro.org>
|
||||
|
||||
PR target/49987
|
||||
* config/rs6000/rs6000.c (paired_expand_vector_init): Check for
|
||||
valid CONST_VECTOR operands.
|
||||
(rs6000_expand_vector_init): Likewise.
|
||||
|
||||
2011-09-02 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
* cgraph.h (cgraph_indirect_call_info): Removed field thunk_delta.
|
||||
|
|
|
@ -4503,7 +4503,9 @@ paired_expand_vector_init (rtx target, rtx vals)
|
|||
for (i = 0; i < n_elts; ++i)
|
||||
{
|
||||
x = XVECEXP (vals, 0, i);
|
||||
if (!CONSTANT_P (x))
|
||||
if (!(CONST_INT_P (x)
|
||||
|| GET_CODE (x) == CONST_DOUBLE
|
||||
|| GET_CODE (x) == CONST_FIXED))
|
||||
++n_var;
|
||||
}
|
||||
if (n_var == 0)
|
||||
|
@ -4655,7 +4657,9 @@ rs6000_expand_vector_init (rtx target, rtx vals)
|
|||
for (i = 0; i < n_elts; ++i)
|
||||
{
|
||||
x = XVECEXP (vals, 0, i);
|
||||
if (!CONSTANT_P (x))
|
||||
if (!(CONST_INT_P (x)
|
||||
|| GET_CODE (x) == CONST_DOUBLE
|
||||
|| GET_CODE (x) == CONST_FIXED))
|
||||
++n_var, one_var = i;
|
||||
else if (x != CONST0_RTX (inner_mode))
|
||||
all_const_zero = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue