Re: [PATCH v2] doc: Correct the return type of float comparison

2025-09-11 Thread Trevor Gross
On Tue, Sep 2, 2025 at 1:39 PM Joseph Myers wrote: > > On Wed, 28 May 2025, Trevor Gross wrote: > > > Documentation for `__cmpsf2` and similar functions currently indicate a > > return type of `int`. This is not correct however; the `libgcc` > > functions return `CMP

Re: [PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-09-11 Thread Trevor Gross
On Thu, Sep 11, 2025 at 1:09 PM Trevor Gross wrote: > (Returning i128 indirectly and f128 in xmm0 would also match the SysV > return ABI.) Slight clarification here the SysV ABI says that i128 can be represented as a 16-aligned struct: typedef struct { long low, high; } __

Re: [PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-09-11 Thread Trevor Gross
On Wed Sep 10, 2025 at 2:41 AM EDT, LIU Hao wrote: > 在 2025-9-10 13:41, Trevor Gross 写道: >> Just following up here, how would you like me to proceed LH? >> > > I agree that `_Float16` should be passed in a vector register, because the > hardware expects it, like in >

Re: [PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-09-09 Thread Trevor Gross
On Mon Sep 1, 2025 at 2:30 AM CDT, Trevor Gross wrote: > Thanks for taking a look so fast LH and Jonathan. > > On Sun Aug 31, 2025 at 11:09 PM CDT, LIU Hao wrote: >> 在 2025-9-1 11:12, Jonathan Yong 写道: >>> On 8/31/25 9:58 PM, Trevor Gross wrote: >>>> For MinGW

Re: [PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-09-01 Thread Trevor Gross
Thanks for taking a look so fast LH and Jonathan. On Sun Aug 31, 2025 at 11:09 PM CDT, LIU Hao wrote: > 在 2025-9-1 11:12, Jonathan Yong 写道: >> On 8/31/25 9:58 PM, Trevor Gross wrote: >>> For MinGW on x86-64, GCC currently passes and returns `_Float16` in >>> GPRs. Mi

[PATCH] x86-64: mingw: Pass and return _Float16 in vector registers [PR115054]

2025-08-31 Thread Trevor Gross
) { *dst = (_Float16)*x; } /* Float varargs should be in vregs with a zeroed shadow GPR */ void va(_Float16, ...); void va_f16() { va(1.0f16, 2.0f16, 3.0f16, 4.0f16, 5.0f16); } 2025-08-31 Trevor Gross gcc/: PR target/115054 * gcc/config/i386

[PATCH] testsuite: Add a smoke test for _FloatN ABI

2025-08-31 Thread Trevor Gross
Introduce a test that exercises various ABI aspects of C23 float types. This is based on existing tests such as `float16-basic.c`. 2025-08-31 Trevor Gross gcc/testsuite/ * gcc.dg/torture/float128-abi.c: New test. * gcc.dg/torture/float128x-abi.c: New test. * gcc.dg

[PING][PATCH v2] doc: Correct the return type of float comparison

2025-08-30 Thread Trevor Gross
Hi all, Ping for a review/commit of the following: On Tue May 27, 2025 at 9:35 PM CDT, Trevor Gross wrote: > Documentation for `__cmpsf2` and similar functions currently indicate a > return type of `int`. This is not correct however; the `libgcc` > functions return `CMPtype`, the size

Re: [PATCH v2] doc: Correct the return type of float comparison

2025-07-06 Thread Trevor Gross
On Tue May 27, 2025 at 9:35 PM CDT, Trevor Gross wrote: > Documentation for `__cmpsf2` and similar functions currently indicate a > return type of `int`. This is not correct however; the `libgcc` > functions return `CMPtype`, the size of which is determined by the > `libgcc_cmp_

Re: [PATCH] doc: Correct the return type of float comparison

2025-05-27 Thread Trevor Gross
On Tue, May 27, 2025 at 3:39 PM Joseph Myers wrote: > > On Fri, 23 May 2025, Trevor Gross wrote: > > > +Comparison functions return a CMPtype which is a signed integer of > > +target-depdent size. Typically CMPtype will be word-sized, but other > > backends >

[PATCH v2] doc: Correct the return type of float comparison

2025-05-27 Thread Trevor Gross
target-dependent, also mentioning the usual modes. Reported-by: beetrees Fixes: https://github.com/rust-lang/compiler-builtins/issues/919#issuecomment-2905347318 Signed-off-by: Trevor Gross --- Changes from v1: * Use `@code` formatting in prose section * s/depdent/dependent v1: https://gcc.gnu.org

[PATCH] doc: Correct the return type of float comparison

2025-05-23 Thread Trevor Gross
target-dependent, also mentioning the usual modes. Reported-by: beetrees Fixes: https://github.com/rust-lang/compiler-builtins/issues/919#issuecomment-2905347318 Signed-off-by: Trevor Gross --- gcc/doc/libgcc.texi | 53 + 1 file changed, 29 insertions