diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e28fd41818e..9dc89ff8736 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2009-06-03 Steve Ellcey + + * config/ia64/vect.md (*movv2sf_internal): Handle big endian case. + 2009-06-03 Jakub Jelinek * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated diff --git a/gcc/config/ia64/vect.md b/gcc/config/ia64/vect.md index 6b42c920d9d..ae23c755e18 100644 --- a/gcc/config/ia64/vect.md +++ b/gcc/config/ia64/vect.md @@ -873,8 +873,8 @@ if (which_alternative == 1) { - operands[2] = XVECEXP (operands[1], 0, 1); - operands[1] = XVECEXP (operands[1], 0, 0); + operands[2] = XVECEXP (operands[1], 0, TARGET_BIG_ENDIAN ? 0 : 1); + operands[1] = XVECEXP (operands[1], 0, TARGET_BIG_ENDIAN ? 1 : 0); } return alt[which_alternative];