vect.md (*movv2sf_internal): Handle big endian case.
authorSteve Ellcey <sje@cup.hp.com>
Wed, 3 Jun 2009 19:35:23 +0000 (19:35 +0000)
committerSteve Ellcey <sje@gcc.gnu.org>
Wed, 3 Jun 2009 19:35:23 +0000 (19:35 +0000)
2009-06-03  Steve Ellcey  <sje@cup.hp.com>

* config/ia64/vect.md (*movv2sf_internal): Handle big endian case.

From-SVN: r148142

gcc/ChangeLog
gcc/config/ia64/vect.md

index e28fd41..9dc89ff 100644 (file)
@@ -1,3 +1,7 @@
+2009-06-03  Steve Ellcey  <sje@cup.hp.com>
+
+       * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
+
 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
 
        * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
index 6b42c92..ae23c75 100644 (file)
 
   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];