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;
>
>
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];
}