re PR libgomp/91530 (Several libgomp.*/scan-* tests FAIL without avx_runtime)
authorJakub Jelinek <jakub@redhat.com>
Wed, 28 Aug 2019 10:12:11 +0000 (12:12 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 28 Aug 2019 10:12:11 +0000 (12:12 +0200)
PR libgomp/91530
* config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
V_128 iterator instead of VI_128.

* testsuite/libgomp.c/scan-21.c: New test.
* testsuite/libgomp.c/scan-22.c: New test.

From-SVN: r274984

gcc/ChangeLog
gcc/config/i386/sse.md
libgomp/ChangeLog
libgomp/testsuite/libgomp.c/scan-21.c [new file with mode: 0644]
libgomp/testsuite/libgomp.c/scan-22.c [new file with mode: 0644]

index 1948829155804fa9f64c7c330ab656df6dc5e84b..1ee26fcf8bf2e81cfb40093e566dbca8c272df72 100644 (file)
@@ -1,3 +1,9 @@
+2019-08-28  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libgomp/91530
+       * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
+       V_128 iterator instead of VI_128.
+
 2019-08-28  Martin Liska  <mliska@suse.cz>
 
        PR tree-optimization/90970
index 7bef93907db56f57831cd43c0a33788b4eda6449..621b4db21f3d0abdda9a38e7c9fdf8644773a014 100644 (file)
 (define_expand "vec_shl_<mode>"
   [(set (match_dup 3)
        (ashift:V1TI
-        (match_operand:VI_128 1 "register_operand")
+        (match_operand:V_128 1 "register_operand")
         (match_operand:SI 2 "const_0_to_255_mul_8_operand")))
-   (set (match_operand:VI_128 0 "register_operand") (match_dup 4))]
+   (set (match_operand:V_128 0 "register_operand") (match_dup 4))]
   "TARGET_SSE2"
 {
   operands[1] = gen_lowpart (V1TImode, operands[1]);
 (define_expand "vec_shr_<mode>"
   [(set (match_dup 3)
        (lshiftrt:V1TI
-        (match_operand:VI_128 1 "register_operand")
+        (match_operand:V_128 1 "register_operand")
         (match_operand:SI 2 "const_0_to_255_mul_8_operand")))
-   (set (match_operand:VI_128 0 "register_operand") (match_dup 4))]
+   (set (match_operand:V_128 0 "register_operand") (match_dup 4))]
   "TARGET_SSE2"
 {
   operands[1] = gen_lowpart (V1TImode, operands[1]);
index e4fa3ceb2b800daee1b74fcad3af5509a0751ee4..3d23b5881e8cdc8842ead6333edf3bfd9ffa8cd5 100644 (file)
@@ -1,3 +1,9 @@
+2019-08-28  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libgomp/91530
+       * testsuite/libgomp.c/scan-21.c: New test.
+       * testsuite/libgomp.c/scan-22.c: New test.
+
 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
 
        PR libgomp/91530
diff --git a/libgomp/testsuite/libgomp.c/scan-21.c b/libgomp/testsuite/libgomp.c/scan-21.c
new file mode 100644 (file)
index 0000000..c57ddc2
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-require-effective-target size32plus } */
+/* { dg-require-effective-target avx_runtime } */
+/* { dg-additional-options "-O2 -fopenmp -fdump-tree-vect-details -msse2 -mno-sse3" } */
+/* { dg-final { scan-tree-dump-times "vectorized \[2-6] loops" 2 "vect" } } */
+
+#include "scan-13.c"
+/* { dg-require-effective-target size32plus } */
+/* { dg-require-effective-target avx_runtime } */
+/* { dg-additional-options "-O2 -fopenmp -fdump-tree-vect-details -msse2 -mno-sse3" } */
+/* { dg-final { scan-tree-dump-times "vectorized \[2-6] loops" 2 "vect" } } */
+
+#include "scan-13.c"
diff --git a/libgomp/testsuite/libgomp.c/scan-22.c b/libgomp/testsuite/libgomp.c/scan-22.c
new file mode 100644 (file)
index 0000000..07672ff
--- /dev/null
@@ -0,0 +1,12 @@
+/* { dg-require-effective-target size32plus } */
+/* { dg-require-effective-target avx_runtime } */
+/* { dg-additional-options "-O2 -fopenmp -fdump-tree-vect-details -msse2 -mno-sse3" } */
+/* { dg-final { scan-tree-dump-times "vectorized \[2-6] loops" 2 "vect" } } */
+
+#include "scan-17.c"
+/* { dg-require-effective-target size32plus } */
+/* { dg-require-effective-target avx_runtime } */
+/* { dg-additional-options "-O2 -fopenmp -fdump-tree-vect-details -msse2 -mno-sse3" } */
+/* { dg-final { scan-tree-dump-times "vectorized \[2-6] loops" 2 "vect" } } */
+
+#include "scan-17.c"