re PR target/61542 ([4.8/4.9/trunk] vect-nop-move.c fails on powerpc64le-unknown...
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Thu, 26 Jun 2014 18:47:52 +0000 (18:47 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Thu, 26 Jun 2014 18:47:52 +0000 (18:47 +0000)
2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/61542
* config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
extraction other than index 3.

From-SVN: r212047

gcc/ChangeLog
gcc/config/rs6000/vsx.md

index b8446a6..78e00e9 100644 (file)
@@ -1,3 +1,9 @@
+2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       PR target/61542
+       * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
+       extraction other than index 3.
+
 2014-06-26  Teresa Johnson  <tejohnson@google.com>
 
        * c-family/c-common.h (get_dump_info): Declare.
index 5083466..6dde799 100644 (file)
     {
       if (GET_CODE (op3) == SCRATCH)
        op3 = gen_reg_rtx (V4SFmode);
-      emit_insn (gen_vsx_xxsldwi_v4sf (op3, op1, op1, op2));
+      emit_insn (gen_vsx_xxsldwi_v4sf (op3, op1, op1, GEN_INT (ele)));
       tmp = op3;
     }
   emit_insn (gen_vsx_xscvspdp_scalar2 (op0, tmp));