[PATCH][AArch64][2/3] Correct type attribute for mul and mneg instructions

Kyrill Tkachov kyrylo.tkachov@foss.arm.com
Mon Nov 26 17:36:00 GMT 2018


Hi all,

In the AAarch64 ISA the MUL and MNEG instructions are actually aliases of MADD and MSUB.
Therefore they should have the type attribute mla, rather than mul, which should only be used
for AArch32 32-bit multiplication instructions.

This will ensure more consistent scheduling decisions.

Bootstrapped and tested on aarch64-none-linux-gnu.

Ok for trunk?

Thanks,
Kyrill

2018-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/aarch64/aarch64.md (mul<mode>3): Change type to mla.
     (*mulsi3_uxtw): Likewise.
     (*mul<mode>_neg): Likewise.
     (*mulsi_neg_uxtw): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: types-2.patch
Type: text/x-patch
Size: 1074 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181126/bb298b7e/attachment.bin>


More information about the Gcc-patches mailing list