Commit e20dcbef by Paolo Bonzini Committed by Paolo Bonzini

re PR target/24951 (ICE: RTL check: expected code 'const_int', have…

re PR target/24951 (ICE: RTL check: expected code 'const_int', have 'const_double' in output_vec_const_move, at config/rs6000/rs6000.c)

2005-11-21  Paolo Bonzini  <bonzini@gnu.org>

	PR target/24951
	* config/rs6000/rs6000.c (output_vec_const_move): Load cst and
	cst2 only for SPE vectors.

From-SVN: r107312
parent 72c164b3
2005-11-21 Paolo Bonzini <bonzini@gnu.org>
PR target/24951
* config/rs6000/rs6000.c (output_vec_const_move): Load cst and
cst2 only for SPE vectors.
2005-11-21 David Edelsohn <edelsohn@gnu.org> 2005-11-21 David Edelsohn <edelsohn@gnu.org>
PR target/24953 PR target/24953
......
...@@ -2200,9 +2200,6 @@ output_vec_const_move (rtx *operands) ...@@ -2200,9 +2200,6 @@ output_vec_const_move (rtx *operands)
dest = operands[0]; dest = operands[0];
vec = operands[1]; vec = operands[1];
cst = INTVAL (CONST_VECTOR_ELT (vec, 0));
cst2 = INTVAL (CONST_VECTOR_ELT (vec, 1));
mode = GET_MODE (dest); mode = GET_MODE (dest);
if (TARGET_ALTIVEC) if (TARGET_ALTIVEC)
...@@ -2240,8 +2237,10 @@ output_vec_const_move (rtx *operands) ...@@ -2240,8 +2237,10 @@ output_vec_const_move (rtx *operands)
FIXME: We should probably return # and add post reload FIXME: We should probably return # and add post reload
splitters for these, but this way is so easy ;-). */ splitters for these, but this way is so easy ;-). */
operands[1] = GEN_INT (cst); cst = INTVAL (CONST_VECTOR_ELT (vec, 0));
operands[2] = GEN_INT (cst2); cst2 = INTVAL (CONST_VECTOR_ELT (vec, 1));
operands[1] = CONST_VECTOR_ELT (vec, 0);
operands[2] = CONST_VECTOR_ELT (vec, 1);
if (cst == cst2) if (cst == cst2)
return "li %0,%1\n\tevmergelo %0,%0,%0"; return "li %0,%1\n\tevmergelo %0,%0,%0";
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