[COMMITTED PATCH v4 0/3] asf: Fix ICE on emit_move_insn [PR119884]

2025-05-27 Thread Konstantinos Eleftheriou
During the base register initialization, when we are eliminating the load instruction, we were calling `emit_move_insn` on registers of the same size but of different mode in some cases, causing an ICE. We update the base register initialization to use `lowpart_subreg` instead of zero-extending th

Re: [PATCH 2/2] vect: Use strided loads for VMAT_STRIDED_SLP.

2025-05-27 Thread Robin Dapp
This mangles in the non-SLP path removal, can you please separate that out? So should patch 1/2 do more than it does, i.e. fully remove the non-slp paths rather than just if (0) them? -- Regards Robin

Re: [PATCH v3 2/2] gimple-fold: extend vector simplification to match scalar bitwise optimizations [PR119196]

2025-05-27 Thread Richard Biener
On Wed, 21 May 2025, Icen Zeyada wrote: > Generalize existing scalar gimple_fold rules to apply the same > bitwise comparison simplifications to vector types. Previously, an > expression like > > (x < y) && (x > y) > > would fold to `false` if x and y are scalars, but eq

[PATCH v2 1/3] vect: Make non-SLP paths unreachable in strided slp/elementwise.

2025-05-27 Thread Robin Dapp
From: Robin Dapp This replaces if (slp) with if (1) and if (!slp) with if (0). gcc/ChangeLog: * tree-vect-stmts.cc (vectorizable_load): Make non-SLP paths unreachable. --- gcc/tree-vect-stmts.cc | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/

Re: [PATCH v3 3/3] asf: Fix calling of emit_move_insn on registers of different modes [PR119884]

2025-05-27 Thread Philipp Tomsich
Thanks everyone — I just applied the series (including the requested) changes to trunk. We'll also send the committed series (v4) to the list for archival. Philipp. On Tue, 20 May 2025 at 14:31, Richard Sandiford wrote: > > Konstantinos Eleftheriou writes: > > This patch uses `lowpart_subreg`

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 > > +may override this with the TARGET

[PATCH v3] RISC-V: Add minimal support of double trap extension 1.0

2025-05-27 Thread Jerry Zhang Jian
Add support of double trap extension [1], enabling GCC to recognize the following extensions at compile time. New extensions: - ssdbltrp - smdbltrp [1] https://github.com/riscv/riscv-double-trap/releases/download/v1.0/riscv-double-trap.pdf gcc/ChangeLog: * config/riscv/riscv-ext.def

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

2025-05-27 Thread Trevor Gross
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_return` mode. Update documentation to use `CMPtype` and indicate that this is targe

Re: [PATCH 0/3] Redirect to specific target based on TARGET_VERSION_COMPATIBLE

2025-05-27 Thread Jeff Law
On 5/27/25 2:36 AM, Alfie Richards wrote: Hi Jeff, On 22/05/2025 21:02, Jeff Law wrote: On 5/22/25 9:05 AM, Alfie Richards wrote: Hi Jeff, I sent this patch with my implementation a while ago: https://gcc.gnu.org/pipermail/gcc-patches/2025-April/681043.html There hasn't been any feedbac

[PATCH] doc: Fix extend.texi menu

2025-05-27 Thread Haochen Jiang
Hi all, commit 517c9487f8fdc4e4e90252a9365e5823259dc783 Author: Alejandro Colomar Date: Thu May 22 01:15:36 2025 +0200 c: Add _Countof operator [PR117025] broke gcc build on RHEL 9 when building texi files: gcc/doc/extend.texi:6: node `C Extensions' lacks menu item for `_Countof' despite

<    1   2