[PATCH] arm: Use SMLALD for two signed 16 bit products
Ishan K
ishanrk@protonmail.com
Sat Oct 3 14:50:47 GMT 2026
Hi,
Resending the patch as a text attachment since the original was sent
with application/octet-stream MIME type.
Thanks,
Ishan Kumthekar
On Saturday, October 3rd, 2026 at 9:45 AM, Ishan K <ishanrk@protonmail.com> wrote:
> Hi,
>
> This patch recognizes
>
> acc + (long long) a[0] * b[0]
> + (long long) a[1] * b[1]
>
> where a and b each contain two signed 16 bit values. GCC currently computes the two products separately. This patch lets GCC use one SMLALD instruction to perform both products and add them to acc in a single instruction.
>
> The attached patch includes the implementation, regression tests,
> ChangeLog entries and testing results.
>
> I do not have GCC write access.
>
> Thanks,
> Ishan Kumthekar
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-arm-Use-SMLALD-for-two-signed-16-bit-products.txt
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20261003/45751cda/attachment.txt>
More information about the Gcc-patches
mailing list