diff options
author | liuhongt <hongtao.liu@intel.com> | 2020-06-04 13:22:09 +0800 |
---|---|---|
committer | liuhongt <hongtao.liu@intel.com> | 2020-06-04 15:48:24 +0800 |
commit | c0b99f67639956eaadfc8da6a704e0e1edbafc18 (patch) | |
tree | f7a50c0df6fc9d428b27e0b3fa9053597582d1a7 | |
parent | eeb54a14c48f543857f561556ab1fc49dc21af26 (diff) | |
download | gcc-c0b99f67639956eaadfc8da6a704e0e1edbafc18.zip gcc-c0b99f67639956eaadfc8da6a704e0e1edbafc18.tar.gz gcc-c0b99f67639956eaadfc8da6a704e0e1edbafc18.tar.bz2 |
Fix uppercase in trunc<mode><pmov_dst_3>2.
2020-06-04 Hongtao.liu <hongtao.liu@intel.com>
gcc/ChangeLog:
* config/i386/sse.md (pmov_dst_3_lower): New mode attribute.
(trunc<mode><pmov_dst_3_lower>2): Refine from
trunc<mode><pmov_dst_3>2.
gcc/testsuite
* gcc.target/i386/pr92658-avx512bw-trunc.c: Adjust testcase.
-rw-r--r-- | gcc/config/i386/sse.md | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr92658-avx512bw-trunc.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index f2a5a34..8735445 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -10688,6 +10688,8 @@ "TARGET_AVX512VL") (define_mode_iterator PMOV_SRC_MODE_3 [V4DI V2DI V8SI V4SI (V8HI "TARGET_AVX512BW")]) +(define_mode_attr pmov_dst_3_lower + [(V4DI "v4qi") (V2DI "v2qi") (V8SI "v8qi") (V4SI "v4qi") (V8HI "v8qi")]) (define_mode_attr pmov_dst_3 [(V4DI "V4QI") (V2DI "V2QI") (V8SI "V8QI") (V4SI "V4QI") (V8HI "V8QI")]) (define_mode_attr pmov_dst_zeroed_3 @@ -10695,7 +10697,7 @@ (define_mode_attr pmov_suff_3 [(V4DI "qb") (V2DI "qb") (V8SI "db") (V4SI "db") (V8HI "wb")]) -(define_expand "trunc<mode><pmov_dst_3>2" +(define_expand "trunc<mode><pmov_dst_3_lower>2" [(set (match_operand:<pmov_dst_3> 0 "register_operand") (truncate:<pmov_dst_3> (match_operand:PMOV_SRC_MODE_3 1 "register_operand")))] diff --git a/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-trunc.c b/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-trunc.c index bdfad7a..1f5ea63 100644 --- a/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-trunc.c +++ b/gcc/testsuite/gcc.target/i386/pr92658-avx512bw-trunc.c @@ -87,5 +87,4 @@ truncwb_128 (v16qi * dst, v8hi * __restrict src) dst[0] = *(v16qi *) tem; } -/* { dg-final { scan-assembler-times "vpmovwb" 2 } } */ -/* { dg-final { scan-assembler-times "vpmovwb" 3 { xfail *-*-* } } } */ +/* { dg-final { scan-assembler-times "vpmovwb" 3 } } */ |