Commit 07179718 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/88489 (FAIL: gcc.target/i386/avx512f-vfixupimmss-2.c execution test)

	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
parent bbc8d04f
2018-12-15 Jakub Jelinek <jakub@redhat.com> 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 PR rtl-optimization/88478
* cselib.c (cselib_record_sets): Move sets[i].src_elt tests * cselib.c (cselib_record_sets): Move sets[i].src_elt tests
after REG_P (dest) test. after REG_P (dest) test.
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
UNSPEC_RCP14 UNSPEC_RCP14
UNSPEC_RSQRT14 UNSPEC_RSQRT14
UNSPEC_FIXUPIMM UNSPEC_FIXUPIMM
UNSPEC_SFIXUPIMM
UNSPEC_SCALEF UNSPEC_SCALEF
UNSPEC_VTERNLOG UNSPEC_VTERNLOG
UNSPEC_GETEXP UNSPEC_GETEXP
...@@ -8872,7 +8873,7 @@ ...@@ -8872,7 +8873,7 @@
[(match_operand:VF_128 1 "register_operand" "v") [(match_operand:VF_128 1 "register_operand" "v")
(match_operand:<sseintvecmode> 2 "<round_saeonly_nimm_predicate>" "<round_saeonly_constraint>") (match_operand:<sseintvecmode> 2 "<round_saeonly_nimm_predicate>" "<round_saeonly_constraint>")
(match_operand:SI 3 "const_0_to_255_operand")] (match_operand:SI 3 "const_0_to_255_operand")]
UNSPEC_FIXUPIMM))] UNSPEC_SFIXUPIMM))]
"TARGET_AVX512F" "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}"; "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") [(set_attr "prefix" "evex")
......
2018-12-15 Jakub Jelinek <jakub@redhat.com> 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 PR rtl-optimization/88478
* g++.dg/opt/pr88478.C: New test. * g++.dg/opt/pr88478.C: New test.
......
/* { 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)
{
}
/* { 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)
{
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment