From 05d256037d2f4425113a8ad18c0cf1c4f411ec96 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 18 Jan 2019 10:14:18 +0100 Subject: [PATCH] Reapply: 2018-12-15 Jakub Jelinek 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 | 9 +++++++++ .../gcc.target/i386/avx512vl-vfixupimmsd-2.c | 20 +++++++++++++++++++ .../gcc.target/i386/avx512vl-vfixupimmss-2.c | 20 +++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c create mode 100644 gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 49fb9b9c818..5a7164200c9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2019-01-18 Jakub Jelinek + + Reapply: + 2018-12-15 Jakub Jelinek + + 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 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 index 00000000000..3d2bd1a0450 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c @@ -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 index 00000000000..9b3248857d2 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c @@ -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) +{ +} -- 2.30.2