Re: [AArch64, Patch] Generate MLA when multiply + add vector by scalar

2017-07-24 Thread James Greenhalgh
On Fri, Jul 21, 2017 at 12:41:41PM +0100, Jackson Woodruff wrote: > Hi all, > > This merges vector multiplies and adds into a single mla instruction > when the multiplication is done by a scalar. > > Currently, for the following: > > typedef int __attribute__((vector_size(16))) vec; > >

[AArch64, Patch] Generate MLA when multiply + add vector by scalar

2017-07-21 Thread Jackson Woodruff
Hi all, This merges vector multiplies and adds into a single mla instruction when the multiplication is done by a scalar. Currently, for the following: typedef int __attribute__((vector_size(16))) vec; vec mla0(vec v0, vec v1, vec v2) { return v0 + v1 * v2[0]; }