diff options
author | liuhongt <hongtao.liu@intel.com> | 2021-09-22 13:14:42 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2021-09-22 13:18:40 +0800 |
commit | 0f4b73f4edf8fa2c24eb4402b1364a1ddb971565 (patch) | |
tree | 5776753e2506b900ad2d9e6733de531c858545e3 /gcc | |
parent | 0eeb8c81e8cebdf5f719756d6ce5becc5d93b61f (diff) | |
download | gcc-0f4b73f4edf8fa2c24eb4402b1364a1ddb971565.zip gcc-0f4b73f4edf8fa2c24eb4402b1364a1ddb971565.tar.gz gcc-0f4b73f4edf8fa2c24eb4402b1364a1ddb971565.tar.bz2 |
Adjust testcase.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr92658-avx512f.c: Refine testcase.
* gcc.target/i386/pr92658-avx512vl.c: Adjust scan-assembler,
only v2di->v2qi truncate is not supported, v4di->v4qi should
be supported.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr92658-avx512f.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr92658-avx512vl.c | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr92658-avx512f.c b/gcc/testsuite/gcc.target/i386/pr92658-avx512f.c index e26b06e..9afb195 100644 --- a/gcc/testsuite/gcc.target/i386/pr92658-avx512f.c +++ b/gcc/testsuite/gcc.target/i386/pr92658-avx512f.c @@ -48,6 +48,10 @@ truncqb (v8qi * dst, v8di * __restrict src) tem[1] = (*src)[1]; tem[2] = (*src)[2]; tem[3] = (*src)[3]; + tem[4] = (*src)[4]; + tem[5] = (*src)[5]; + tem[6] = (*src)[6]; + tem[7] = (*src)[7]; dst[0] = *(v8qi *) tem; } @@ -100,7 +104,7 @@ truncdb (v16qi * dst, v16si * __restrict src) /* { dg-final { scan-assembler-times "vpmovqd" 1 } } */ /* { dg-final { scan-assembler-times "vpmovqw" 1 } } */ -/* { dg-final { scan-assembler-times "vpmovqb" 1 { xfail *-*-* } } } */ +/* { dg-final { scan-assembler-times "vpmovqb" 1 } } */ /* { dg-final { scan-assembler-times "vpmovdw" 1 } } */ /* { dg-final { scan-assembler-times "vpmovdb" 1 } } */ diff --git a/gcc/testsuite/gcc.target/i386/pr92658-avx512vl.c b/gcc/testsuite/gcc.target/i386/pr92658-avx512vl.c index 7ff9c19..ae6959e 100644 --- a/gcc/testsuite/gcc.target/i386/pr92658-avx512vl.c +++ b/gcc/testsuite/gcc.target/i386/pr92658-avx512vl.c @@ -123,6 +123,7 @@ truncdb_128 (v16qi * dst, v4si * __restrict src) /* { dg-final { scan-assembler-times "vpmovqd" 2 } } */ /* { dg-final { scan-assembler-times "vpmovqw" 2 } } */ -/* { dg-final { scan-assembler-times "vpmovqb" 2 { xfail *-*-* } } } */ +/* { dg-final { scan-assembler-times "vpmovqb\[ \t]*%ymm" 1 } } */ +/* { dg-final { scan-assembler-times "vpmovqb\[ \t]*%xmm" 1 { xfail *-*-* } } } */ /* { dg-final { scan-assembler-times "vpmovdw" 2 } } */ /* { dg-final { scan-assembler-times "vpmovdb" 2 } } */ |