diff options
author | Hu, Lin1 <lin1.hu@intel.com> | 2024-07-11 15:03:22 +0800 |
---|---|---|
committer | Hu, Lin1 <lin1.hu@intel.com> | 2024-07-16 09:23:48 +0800 |
commit | a902e35396d68f10bd27477153fafa4f5ac9c319 (patch) | |
tree | e1429f3e1e9e2a671da09286363808a6fa2fbe8e /gcc/expr.cc | |
parent | c6803cdaba7a7bf933e52cd36f901430253cc2b0 (diff) | |
download | gcc-a902e35396d68f10bd27477153fafa4f5ac9c319.zip gcc-a902e35396d68f10bd27477153fafa4f5ac9c319.tar.gz gcc-a902e35396d68f10bd27477153fafa4f5ac9c319.tar.bz2 |
i386: extend trunc{128}2{16,32,64}'s scope.
Based on actual usage, trunc{128}2{16,32,64} use some instructions from
sse/sse3, so extend their scope to extend the scope of optimization.
gcc/ChangeLog:
PR target/107432
* config/i386/sse.md
(PMOV_SRC_MODE_3_AVX2): Add TARGET_AVX2 for V4DI and V8SI.
(PMOV_SRC_MODE_4): Add TARGET_AVX2 for V4DI.
(trunc<mode><pmov_dst_3_lower>2): Change constraint from TARGET_AVX2 to
TARGET_SSSE3.
(trunc<mode><pmov_dst_4_lower>2): Ditto.
(truncv2div2si2): Change constraint from TARGET_AVX2 to TARGET_SSE.
gcc/testsuite/ChangeLog:
PR target/107432
* gcc.target/i386/pr107432-10.c: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions