From 1bc4e811aa7249ec972ee7ea5b9bb23e8a0cd69e Mon Sep 17 00:00:00 2001 From: liuhongt Date: Tue, 18 Aug 2020 13:18:03 +0800 Subject: [PATCH] Adjust testcase. Since This testcase is used to check generation of AVX512 vector comparison, scan-assembler for vmov instruction could be deleted, also -mprefer-vector-width=512 is added to avoid impact of different default arch/tune of GCC. gcc/testsuite PR target/96574 * gcc.target/i386/pr92865-1.c: Adjust testcase. --- gcc/testsuite/gcc.target/i386/pr92865-1.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/pr92865-1.c b/gcc/testsuite/gcc.target/i386/pr92865-1.c index 8aeab608626..05f48986b66 100644 --- a/gcc/testsuite/gcc.target/i386/pr92865-1.c +++ b/gcc/testsuite/gcc.target/i386/pr92865-1.c @@ -1,12 +1,8 @@ /* PR target/92865 */ /* { dg-do compile } */ -/* { dg-options "-Ofast -mavx512bw -mxop" } */ -/* { dg-final { scan-assembler-times "vpcmp\[bwdq\]\[\t ]" 4 } } */ -/* { dg-final { scan-assembler-times "vpcmpu\[bwdq\]\[\t ]" 4 } } */ -/* { dg-final { scan-assembler-times "vmovdq\[au\]8\[\t ]" 6 } } */ -/* { dg-final { scan-assembler-times "vmovdq\[au\]16\[\t ]" 6 } } * -/* { dg-final { scan-assembler-times "vmovdq\[au\]32\[\t ]" 6 } } */ -/* { dg-final { scan-assembler-times "vmovdq\[au\]64\[\t ]" 6 } } */ +/* { dg-options "-Ofast -mavx512bw -mxop -mprefer-vector-width=512" } */ +/* { dg-final { scan-assembler-times "vpcmp\[bwdq\]\[\t \]\[^\n\{\]*zmm\[^\n\{\]*k\[0-7\](?:\n|\[ \t\]+#)" 4 } } */ +/* { dg-final { scan-assembler-times "vpcmpu\[bwdq\]\[\t \]\[^\n\{\]*zmm\[^\n\{\]*k\[0-7\](?:\n|\[ \t\]+#)" 4 } } */ extern char arraysb[64]; extern short arraysw[32]; -- 2.30.2