From 5cb72d83bb375ea6ad2121daf4202605e7883d30 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 28 Aug 2019 12:12:11 +0200 Subject: [PATCH] re PR libgomp/91530 (Several libgomp.*/scan-* tests FAIL without avx_runtime) PR libgomp/91530 * config/i386/sse.md (vec_shl_, vec_shr_): 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 | 6 ++++++ gcc/config/i386/sse.md | 8 ++++---- libgomp/ChangeLog | 6 ++++++ libgomp/testsuite/libgomp.c/scan-21.c | 12 ++++++++++++ libgomp/testsuite/libgomp.c/scan-22.c | 12 ++++++++++++ 5 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 libgomp/testsuite/libgomp.c/scan-21.c create mode 100644 libgomp/testsuite/libgomp.c/scan-22.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19488291558..1ee26fcf8bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-08-28 Jakub Jelinek + + PR libgomp/91530 + * config/i386/sse.md (vec_shl_, vec_shr_): Use + V_128 iterator instead of VI_128. + 2019-08-28 Martin Liska PR tree-optimization/90970 diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 7bef93907db..621b4db21f3 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -12047,9 +12047,9 @@ (define_expand "vec_shl_" [(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]); @@ -12060,9 +12060,9 @@ (define_expand "vec_shr_" [(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]); diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index e4fa3ceb2b8..3d23b5881e8 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2019-08-28 Jakub Jelinek + + PR libgomp/91530 + * testsuite/libgomp.c/scan-21.c: New test. + * testsuite/libgomp.c/scan-22.c: New test. + 2019-08-27 Jakub Jelinek 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 index 00000000000..c57ddc27eae --- /dev/null +++ b/libgomp/testsuite/libgomp.c/scan-21.c @@ -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 index 00000000000..07672ff0a1a --- /dev/null +++ b/libgomp/testsuite/libgomp.c/scan-22.c @@ -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" -- 2.30.2