AVX512FP16: Add expander for sqrthf2.
authorliuhongt <hongtao.liu@intel.com>
Fri, 10 Jul 2020 07:22:30 +0000 (15:22 +0800)
committerliuhongt <hongtao.liu@intel.com>
Wed, 22 Sep 2021 04:56:31 +0000 (12:56 +0800)
commit59e9c4cbe665951f3f3714c966ecf7776b36894c
tree1869eab977bc038657754b334d622b4567a92b97
parent8a5837cfb714d6a677332ee946b02f7f3558fca4
AVX512FP16: Add expander for sqrthf2.

gcc/ChangeLog:

* config/i386/i386-features.c (i386-features.c): Handle
E_HFmode.
* config/i386/i386.md (sqrthf2): New expander.
(*sqrthf2): New define_insn.
* config/i386/sse.md
(*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>):
Extend to VFH_128.

gcc/testsuite/ChangeLog:

* gcc.target/i386/avx512fp16-builtin-sqrt-1.c: New test.
* gcc.target/i386/avx512fp16vl-builtin-sqrt-1.c: New test.
gcc/config/i386/i386-features.c
gcc/config/i386/i386.md
gcc/config/i386/sse.md
gcc/testsuite/gcc.target/i386/avx512fp16-builtin-sqrt-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512fp16vl-builtin-sqrt-1.c [new file with mode: 0644]