re PR target/88794 (fixupimm intrinsics are unusable)
authorWei Xiao <wei3.xiao@intel.com>
Thu, 17 Jan 2019 08:51:01 +0000 (08:51 +0000)
committerXuepeng Guo <xguo@gcc.gnu.org>
Thu, 17 Jan 2019 08:51:01 +0000 (08:51 +0000)
gcc/ChangeLog:
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        2018-12-15  Jakub Jelinek  <jakub@redhat.com>

        PR target/88489
        * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
        (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
        instead of UNSPEC_FIXUPIMM.

gcc/testsuite/ChangeLog:
2019-01-17  Wei Xiao  <wei3.xiao@intel.com>

        PR target/88794
        Revert:
        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: r268011

gcc/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmsd-2.c [deleted file]
gcc/testsuite/gcc.target/i386/avx512vl-vfixupimmss-2.c [deleted file]

index 400e44a947c1d4fd21bd9c631f8b5b907070804f..47bccb5bbabe41274d46fcede833051aabd3d3f0 100644 (file)
@@ -1,3 +1,14 @@
+2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
+
+       PR target/88794
+       Revert:
+       2018-12-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/88489
+       * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
+       (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
+       instead of UNSPEC_FIXUPIMM.
+
 2019-01-17  Richard Biener  <rguenther@suse.de>
 
        PR lto/86736
index 15643fe6b11db06e7633bcae496867a57b44a9b3..e4697ba03590e9cd82220b83494c5f0afad5f576 100644 (file)
@@ -95,7 +95,6 @@
   UNSPEC_RCP14
   UNSPEC_RSQRT14
   UNSPEC_FIXUPIMM
-  UNSPEC_SFIXUPIMM
   UNSPEC_SCALEF
   UNSPEC_VTERNLOG
   UNSPEC_GETEXP
           [(match_operand:VF_128 1 "register_operand" "v")
             (match_operand:<sseintvecmode> 2 "<round_saeonly_nimm_predicate>" "<round_saeonly_constraint>")
             (match_operand:SI 3 "const_0_to_255_operand")]
-           UNSPEC_SFIXUPIMM))]
+           UNSPEC_FIXUPIMM))]
    "TARGET_AVX512F"
   "vfixupimm<ssescalarmodesuffix>\t{%3, <round_saeonly_mask_op4>%2, %1, %0<mask_operand4>|%0<mask_operand4>, %1, %<iptr>2<round_saeonly_mask_op4>, %3}";
   [(set_attr "prefix" "evex")
index 3548e4f7eeaae7f57841a0931a4e9d4a32f6747e..188974d3657cffa349a1146fea19896d7515eebe 100644 (file)
@@ -1,3 +1,13 @@
+2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
+
+       PR target/88794
+       Revert:
+       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-17  Jakub Jelinek  <jakub@redhat.com>
 
        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 (file)
index 3d2bd1a..0000000
+++ /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 (file)
index 9b32488..0000000
+++ /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)
-{
-}