Reapply:
authorJakub Jelinek <jakub@redhat.com>
Fri, 18 Jan 2019 09:14:18 +0000 (10:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 18 Jan 2019 09:14:18 +0000 (10:14 +0100)
2018-12-15  Jakub Jelinek  <jakub@redhat.com>

PR target/88489
* gcc.target/i386/avx512vl-vfixupimmsd-2.c: New test.
* gcc.target/i386/avx512vl-vfixupimmss-2.c: New test.

From-SVN: r268063

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c [new file with mode: 0644]

index 49fb9b9c8182825e79b0e4b9c967c903fd6b247e..5a7164200c938f770f0faec75dc22d0bafbc5d3b 100644 (file)
@@ -1,3 +1,12 @@
+2019-01-18  Jakub Jelinek  <jakub@redhat.com>
+
+       Reapply:
+       2018-12-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/88489
+       * gcc.target/i386/avx512vl-vfixupimmsd-2.c: New test.
+       * gcc.target/i386/avx512vl-vfixupimmss-2.c: New test.
+
 2019-01-18  Martin Liska  <mliska@suse.cz>
 
        PR middle-end/88587
diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c b/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c
new file mode 100644 (file)
index 0000000..3d2bd1a
--- /dev/null
@@ -0,0 +1,20 @@
+/* { dg-do run } */
+/* { dg-options "-mavx512vl -O2 -std=gnu99" } */
+/* { dg-require-effective-target avx512vl } */
+/* { dg-require-effective-target c99_runtime } */
+
+#define AVX512VL
+#define AVX512F_LEN 512
+#define AVX512F_LEN_HALF 256
+#include "avx512f-vfixupimmsd-2.c"
+
+static void
+test_256 (void)
+{
+  test_512 ();
+}
+
+static void
+test_128 (void)
+{
+}
diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c b/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c
new file mode 100644 (file)
index 0000000..9b32488
--- /dev/null
@@ -0,0 +1,20 @@
+/* { dg-do run } */
+/* { dg-options "-mavx512vl -O2 -std=gnu99" } */
+/* { dg-require-effective-target avx512vl } */
+/* { dg-require-effective-target c99_runtime } */
+
+#define AVX512VL
+#define AVX512F_LEN 512
+#define AVX512F_LEN_HALF 256
+#include "avx512f-vfixupimmss-2.c"
+
+static void
+test_256 (void)
+{
+  test_512 ();
+}
+
+static void
+test_128 (void)
+{
+}