OSDN Git Service

PR target/27158
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jun 2006 02:02:14 +0000 (02:02 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jun 2006 02:02:14 +0000 (02:02 +0000)
commite4152f24924d1bac7a071b579ccc51421783132a
treed60879a51c60c075a9d786af6c673703a9ec1427
parentf5021a7169396ce782268c5fdfec86099c1bce04
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114558 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/predicates.md
gcc/config/rs6000/rs6000.c