]> git.ipfire.org Git - thirdparty/gcc.git/commit
aarch64: Relax fpm_t assert to allow const_ints [PR120986]
authorAlex Coplan <alex.coplan@arm.com>
Tue, 15 Jul 2025 10:49:27 +0000 (11:49 +0100)
committerAlex Coplan <alex.coplan@arm.com>
Fri, 8 Aug 2025 11:07:26 +0000 (12:07 +0100)
commit80b0e4ad2f60de8bd57e83628b4ead46df6fb004
tree49158fdf65c15d7eb05445fe66577755c923012c
parent75eabf69d805b7effb5e50f0ed53f45d6a2f596a
aarch64: Relax fpm_t assert to allow const_ints [PR120986]

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.

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
gcc/testsuite/gcc.target/aarch64/torture/pr120986-2.c [new file with mode: 0644]