]> git.ipfire.org Git - thirdparty/gcc.git/commit
Support reduc_{plus,smax,smin,umax,min}_scal_v4hi.
authorliuhongt <hongtao.liu@intel.com>
Tue, 28 Sep 2021 04:55:10 +0000 (12:55 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 8 Oct 2021 02:09:51 +0000 (10:09 +0800)
commit77ca2cfcdcccee3c8e8aeaf1d03e9920893d2486
tree5a13d925dac18a081d831f7b49f2a349d053898b
parent2b8453c401b699ed93c085d0413ab4b5030bcdb8
Support reduc_{plus,smax,smin,umax,min}_scal_v4hi.

gcc/ChangeLog:

PR target/102494
* config/i386/i386-expand.c (emit_reduc_half): Hanlde V4HImode.
* config/i386/mmx.md (reduc_plus_scal_v4hi): New.
(reduc_<code>_scal_v4hi): New.

gcc/testsuite/ChangeLog:

* gcc.target/i386/mmx-reduce-op-1.c: New test.
* gcc.target/i386/mmx-reduce-op-2.c: New test.
gcc/config/i386/i386-expand.c
gcc/config/i386/mmx.md
gcc/testsuite/gcc.target/i386/mmx-reduce-op-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/mmx-reduce-op-2.c [new file with mode: 0644]