Re: [PATCH][AARCH64] Emulating aligned mask loads on AArch64

2015-09-18 Thread Richard Biener
On Fri, 18 Sep 2015, James Greenhalgh wrote: > On Fri, Sep 18, 2015 at 11:24:50AM +0100, Pawel Kupidura wrote: > > This patch uses max reductions to emulate aligned masked loads on AArch64. > > It reduces the mask to a scalar that is nonzero if any mask element is true, > > then uses that scalar t

Re: [PATCH][AARCH64] Emulating aligned mask loads on AArch64

2015-09-18 Thread James Greenhalgh
On Fri, Sep 18, 2015 at 11:24:50AM +0100, Pawel Kupidura wrote: > This patch uses max reductions to emulate aligned masked loads on AArch64. > It reduces the mask to a scalar that is nonzero if any mask element is true, > then uses that scalar to select between the real address and a scratchpad > a

[PATCH][AARCH64] Emulating aligned mask loads on AArch64

2015-09-18 Thread Pawel Kupidura
This patch uses max reductions to emulate aligned masked loads on AArch64. It reduces the mask to a scalar that is nonzero if any mask element is true, then uses that scalar to select between the real address and a scratchpad address. The idea is that if the vector load is aligned, it cannot cros