re PR target/88489 (FAIL: gcc.target/i386/avx512f-vfixupimmss-2.c execution test)
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Dec 2018 23:21:10 +0000 (00:21 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 14 Dec 2018 23:21:10 +0000 (00:21 +0100)
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.target/i386/avx512vl-vfixupimmsd-2.c: New test.
* gcc.target/i386/avx512vl-vfixupimmss-2.c: New test.

From-SVN: r267160

gcc/ChangeLog
gcc/config/i386/sse.md
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 1ae1cc756338d1df201c6d0e7df0cea82a41b8f5..9ef7f902c1ac15a3abb7c59afa2cbb838294f519 100644 (file)
@@ -1,5 +1,10 @@
 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.
+
        PR rtl-optimization/88478
        * cselib.c (cselib_record_sets): Move sets[i].src_elt tests
        after REG_P (dest) test.
index be65f902d9ebe48d79aac7c2519b758232c65ebb..877759c826efeca18d120e791cfb9b701c8bd882 100644 (file)
@@ -95,6 +95,7 @@
   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_FIXUPIMM))]
+           UNSPEC_SFIXUPIMM))]
    "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 8931a4c12ec058a3ff77514323a6cb6ebb170368..bbc7e3fa4bcbbcff2bcbad4df67db305c3188e42 100644 (file)
@@ -1,5 +1,9 @@
 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.
+
        PR rtl-optimization/88478
        * g++.dg/opt/pr88478.C: New test.
 
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)
+{
+}