re PR target/27158 (ICE in extract_insn with -maltivec)
authorRoger Sayle <roger@eyesopen.com>
Mon, 12 Jun 2006 02:02:14 +0000 (02:02 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Mon, 12 Jun 2006 02:02:14 +0000 (02:02 +0000)
commit0972012c8a44748910e97ce6346de845237e2533
treed60879a51c60c075a9d786af6c673703a9ec1427
parent98ea97ab843355038471b526eb63b2198e4efb1b
re PR target/27158 (ICE in extract_insn with -maltivec)

PR target/27158
* config/rs6000/rs6000.c (const_vector_elt_as_int): New function to
extract a CONST_VECTOR element and interpret it as an integer.
(vspltis_constant): Use const_vector_elt_as_int instead of the
macro CONST_VECTOR_ELT in order to handle FP vector modes.
* config/rs6000/predicates.md (easy_vector_const): Consider
floating point ALTIVEC_VECTOR_MODEs via easy_altivec_constant.

From-SVN: r114558
gcc/ChangeLog
gcc/config/rs6000/predicates.md
gcc/config/rs6000/rs6000.c