Fix ICE when expanding MSA constant vectors with replicated values

gcc/
	* config/mips/mips.c (mips_expand_vector_init): Create
	a const_vector to initialise a vector register instead of
	using a const_int.

From-SVN: r246601
This commit is contained in:
Matthew Fortune 2017-03-30 22:47:38 +00:00 committed by Matthew Fortune
parent c8e0f43f74
commit 6c18efd4e2
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
* config/mips/mips.c (mips_expand_vector_init): Create a const_vector
to initialise a vector register instead
of using a const_int.
2017-03-30 Jakub Jelinek <jakub@redhat.com>
PR translation/80189

View File

@ -21757,11 +21757,12 @@ mips_expand_vector_init (rtx target, rtx vals)
case V8HImode:
case V4SImode:
case V2DImode:
emit_move_insn (target, same);
temp = gen_rtx_CONST_VECTOR (vmode, XVEC (vals, 0));
emit_move_insn (target, temp);
return;
default:
break;
gcc_unreachable ();
}
}
temp = gen_reg_rtx (imode);