tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift permutations to...
authorEvgeny Stupachenko <evstupac@gmail.com>
Fri, 28 Nov 2014 14:45:26 +0000 (14:45 +0000)
committerIlya Enkovich <ienkovich@gcc.gnu.org>
Fri, 28 Nov 2014 14:45:26 +0000 (14:45 +0000)
gcc/
* tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
permutations to loads group of size 3.

gcc/testsuite/

* gcc.target/i386/pr52252-atom-1.c: Delete.

From-SVN: r218160

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr52252-atom-1.c [deleted file]
gcc/tree-vect-data-refs.c

index 10fec954f9f5744b4feb95efa520e01e7dccfe56..e77895161cafe8ef3d88039f871ab07a42067752 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-28  Evgeny Stupachenko  <evstupac@gmail.com>
+
+       * tree-vect-data-refs.c (vect_transform_grouped_load): Limit shift
+       permutations to loads group of size 3.
+
 2014-11-28  Jiong Wang  <jiong.wang@arm.com>
 
        * config/arm/arm.md (copysignsf3): New pattern.
index 8d4a7889ff24f78c9ec6c2b33b8a2794a9a95270..14302b71688008bebc63b8db8ece01ae44f18493 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-28  Evgeny Stupachenko  <evstupac@gmail.com>
+
+       * gcc.target/i386/pr52252-atom-1.c: Delete.
+
 2014-11-28  Jiong Wang  <jiong.wang@arm.com>
 
        * gcc.target/arm/copysign_softfloat_1.c: New copysign/copysignf
diff --git a/gcc/testsuite/gcc.target/i386/pr52252-atom-1.c b/gcc/testsuite/gcc.target/i386/pr52252-atom-1.c
deleted file mode 100644 (file)
index 020e983..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/* { dg-do compile } */
-/* { dg-require-effective-target ssse3 } */
-/* { dg-options "-O2 -ftree-vectorize -mssse3 -mtune=slm" } */
-#define byte unsigned char
-
-void
-pair_mul_sum(byte *in, byte *out, int size)
-{
-  int j;
-  for(j = 0; j < size; j++)
-    {
-      byte a = in[0];
-      byte b = in[1];
-      byte c = in[2];
-      byte d = in[3];
-      out[0] = (byte)(a * b) + (byte)(b * c) + (byte)(c * d) + (byte)(d * a);
-      in += 4;
-      out += 1;
-    }
-}
-
-/* { dg-final { scan-assembler "perm2i128|palignr" } } */
index 35d0e0fa80311f1f1fb9117b75933a5d4ebaa804..3eb20fc9685b1a0a6df6872d1dda1b757428f882 100644 (file)
@@ -5617,6 +5617,7 @@ vect_transform_grouped_load (gimple stmt, vec<tree> dr_chain, int size,
      get chain for loads group using vect_shift_permute_load_chain.  */
   mode = TYPE_MODE (STMT_VINFO_VECTYPE (vinfo_for_stmt (stmt)));
   if (targetm.sched.reassociation_width (VEC_PERM_EXPR, mode) > 1
+      || exact_log2 (size) != -1
       || !vect_shift_permute_load_chain (dr_chain, size, stmt,
                                         gsi, &result_chain))
     vect_permute_load_chain (dr_chain, size, stmt, gsi, &result_chain);