Re: [PATCH] Optimize _Float16 usage for non AVX512FP16.

2021-11-28 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 29, 2021 at 8:46 AM liuhongt wrote: > > As discussed in PR, this patch do optimizations: > 1. No memory is needed to move HI/HFmode between GPR and SSE registers > under TARGET_SSE2 and above, pinsrw/pextrw are used for them w/o > AVX512FP16. > 2. Use

[PATCH] Optimize _Float16 usage for non AVX512FP16.

2021-11-28 Thread liuhongt via Gcc-patches
As discussed in PR, this patch do optimizations: 1. No memory is needed to move HI/HFmode between GPR and SSE registers under TARGET_SSE2 and above, pinsrw/pextrw are used for them w/o AVX512FP16. 2. Use gen_sse2_pinsrph/gen_vec_setv4sf_0 to replace ix86_expand_vector_set in extendhfsf2/truncsfhf2