fix alignment issue in ploaddup for AVX512

This commit is contained in:
Gael Guennebaud
2018-09-28 16:57:32 +02:00
parent e95696acb3
commit 626942d9dd
2 changed files with 5 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ template<typename Scalar> void packetmath()
if(PacketSize>1)
{
// apply different offsets to check that ploaddup is robust to unaligned inputs
for(int offset=0;offset<4;++offset)
{
for(int i=0;i<PacketSize/2;++i)
@@ -238,6 +239,7 @@ template<typename Scalar> void packetmath()
if(PacketSize>2)
{
// apply different offsets to check that ploadquad is robust to unaligned inputs
for(int offset=0;offset<4;++offset)
{
for(int i=0;i<PacketSize/4;++i)