Re: [PATCH] AVX512FP16:support basic 64/32bit vector type and operation.

2021-09-28 Thread Hongyu Wang via Gcc-patches
gt; > > > diff --git > > > > a/gcc/testsuite/gcc.target/i386/avx512fp16-trunc-extendvnhf.c > > > > b/gcc/testsuite/gcc.target/i386/avx512fp16-trunc-extendvnhf.c > > > > index 286ea9f2624..2ef901a0375 100644 > > > > --- a/gcc/testsuite/gcc.

Re: [PATCH] AVX512FP16:support basic 64/32bit vector type and operation.

2021-09-27 Thread Uros Bizjak via Gcc-patches
On Tue, Sep 28, 2021 at 6:48 AM Hongyu Wang wrote: > > > ia32 ABI declares that __m64 values pass via MMX registers. Due to > > this, we are not able to fully disable MMX register usage, as is the > > case with x86_64. So, V4HFmode values will pass to functions via MMX > > registers on ia32 target

Re: [PATCH] AVX512FP16:support basic 64/32bit vector type and operation.

2021-09-27 Thread Hongyu Wang via Gcc-patches
]+(?:\n|\[ \\t\]+#)" 1 } } */ > > /* { dg-final { scan-assembler-times "vcvtph2psx\[ > > \\t\]+\[^\{\n\]*\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ > > -/* { dg-final { scan-assembler-times "vcvtph2psx\[ > > \\t\]+\[^\{\n\]*\[^\n\r]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1

Re: [PATCH] AVX512FP16:support basic 64/32bit vector type and operation.

2021-09-27 Thread Uros Bizjak via Gcc-patches
On Mon, Sep 27, 2021 at 12:42 PM Hongyu Wang wrote: > > Hi Uros, > > This patch intends to support V4HF/V2HF vector type and basic operations. > > For 32bit target, V4HF vector is parsed same as __m64 type, V2HF > is parsed by stack and returned from GPR since it is not specified > by ABI. > > We

[PATCH] AVX512FP16:support basic 64/32bit vector type and operation.

2021-09-27 Thread Hongyu Wang via Gcc-patches
Hi Uros, This patch intends to support V4HF/V2HF vector type and basic operations. For 32bit target, V4HF vector is parsed same as __m64 type, V2HF is parsed by stack and returned from GPR since it is not specified by ABI. We found for 64bit vector in ia32, when mmx disabled there seems no mov_i