From 8a8d6691e8f1a1021928d7b296d551066495a245 Mon Sep 17 00:00:00 2001 From: Wei Xiao Date: Thu, 17 Jan 2019 08:51:01 +0000 Subject: [PATCH] re PR target/88794 (fixupimm intrinsics are unusable) gcc/ChangeLog: 2019-01-17 Wei Xiao PR target/88794 Revert: 2018-12-15 Jakub Jelinek PR target/88489 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator. (avx512f_sfixupimm): Use it instead of UNSPEC_FIXUPIMM. gcc/testsuite/ChangeLog: 2019-01-17 Wei Xiao PR target/88794 Revert: 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: r268011 --- gcc/ChangeLog | 11 ++++++++++ gcc/config/i386/sse.md | 3 +-- gcc/testsuite/ChangeLog | 10 ++++++++++ .../gcc.target/i386/avx512vl-vfixupimmsd-2.c | 20 ------------------- .../gcc.target/i386/avx512vl-vfixupimmss-2.c | 20 ------------------- 5 files changed, 22 insertions(+), 42 deletions(-) delete mode 100644 gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c delete mode 100644 gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 400e44a947c..47bccb5bbab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2019-01-17 Wei Xiao + + PR target/88794 + Revert: + 2018-12-15 Jakub Jelinek + + PR target/88489 + * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator. + (avx512f_sfixupimm): Use it + instead of UNSPEC_FIXUPIMM. + 2019-01-17 Richard Biener PR lto/86736 diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 15643fe6b11..e4697ba0359 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -95,7 +95,6 @@ UNSPEC_RCP14 UNSPEC_RSQRT14 UNSPEC_FIXUPIMM - UNSPEC_SFIXUPIMM UNSPEC_SCALEF UNSPEC_VTERNLOG UNSPEC_GETEXP @@ -8908,7 +8907,7 @@ [(match_operand:VF_128 1 "register_operand" "v") (match_operand: 2 "" "") (match_operand:SI 3 "const_0_to_255_operand")] - UNSPEC_SFIXUPIMM))] + UNSPEC_FIXUPIMM))] "TARGET_AVX512F" "vfixupimm\t{%3, %2, %1, %0|%0, %1, %2, %3}"; [(set_attr "prefix" "evex") diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3548e4f7eea..188974d3657 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2019-01-17 Wei Xiao + + PR target/88794 + Revert: + 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-17 Jakub Jelinek PR rtl-optimization/88870 diff --git a/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c b/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c deleted file mode 100644 index 3d2bd1a0450..00000000000 --- a/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c +++ /dev/null @@ -1,20 +0,0 @@ -/* { 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 deleted file mode 100644 index 9b3248857d2..00000000000 --- a/gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c +++ /dev/null @@ -1,20 +0,0 @@ -/* { 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