Re: [PATCH] Add optional _Float16 support

2021-07-01 Thread H.J. Lu via Gcc-patches
On Thu, Jul 1, 2021 at 3:40 PM Joseph Myers wrote: > > On Thu, 1 Jul 2021, H.J. Lu wrote: > > > BTW, _Float16 software emulation may require more than just SSE > > since we need to do _Float16 load and store with XMM registers. > > There is no 16bit load/store for XMM registers without AVX512FP16.

Re: [PATCH] Add optional _Float16 support

2021-07-01 Thread Joseph Myers
On Thu, 1 Jul 2021, H.J. Lu wrote: > BTW, _Float16 software emulation may require more than just SSE > since we need to do _Float16 load and store with XMM registers. > There is no 16bit load/store for XMM registers without AVX512FP16. You should be able to make the move go via general-purpose re

Re: [PATCH] Add optional _Float16 support

2021-07-01 Thread H.J. Lu via Gcc-patches
On Thu, Jul 1, 2021 at 3:10 PM Joseph Myers wrote: > > On Thu, 1 Jul 2021, H.J. Lu via Gcc-patches wrote: > > > 2. Return _Float16 and _Complex _Float16 values in %xmm0/%xmm1 registers. > > That restricts use of _Float16 to processors with SSE. Is that what we > want in the ABI, or should _Float1

Re: [PATCH] Add optional _Float16 support

2021-07-01 Thread Joseph Myers
On Thu, 1 Jul 2021, H.J. Lu via Gcc-patches wrote: > 2. Return _Float16 and _Complex _Float16 values in %xmm0/%xmm1 registers. That restricts use of _Float16 to processors with SSE. Is that what we want in the ABI, or should _Float16 be available with base 32-bit x86 architecture features only