[PATCH] arm: Use SMLALD for two signed 16 bit products
Ishan K
ishanrk@protonmail.com
Sat Oct 3 13:45:36 GMT 2026
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 --------------
A non-text attachment was scrubbed...
Name: 0001-arm-Use-SMLALD-for-two-signed-16-bit-products.patch
Type: application/octet-stream
Size: 8125 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20261003/e61ebc28/attachment.obj>
More information about the Gcc-patches
mailing list