> On 15 Jul 2025, at 15:01, Alex Coplan <alex.cop...@arm.com> wrote:
>
> Hi,
>
> This relaxes an overzealous assert that required the fpm_t argument to
> be in DImode when expanding FP8 intrinsics. Of course this fails to
> account for modeless const_ints.
>
> Bootstrapped/regtested on aarch64-linux-gnu, OK for trunk and backport
> to GCC 15?
>
Ok.
Thanks,
Kyrill
> Thanks,
> Alex
>
> gcc/ChangeLog:
>
> PR target/120986
> * config/aarch64/aarch64-sve-builtins.cc
> (function_expander::expand): Relax fpm_t assert to allow
> modeless const_ints.
>
> gcc/testsuite/ChangeLog:
>
> PR target/120986
> * gcc.target/aarch64/torture/pr120986-2.c: New test.
> ---
> gcc/config/aarch64/aarch64-sve-builtins.cc | 5 +++--
> gcc/testsuite/gcc.target/aarch64/torture/pr120986-2.c | 7 +++++++
> 2 files changed, 10 insertions(+), 2 deletions(-)
> create mode 100644 gcc/testsuite/gcc.target/aarch64/torture/pr120986-2.c
>
> <0002-aarch64-Relax-fpm_t-assert-to-allow-const_ints-PR120.patch>