How to transform SSE assembly code to AVX1/2 assembly code?

0

I'm trying to convert a function from AVX to AVX2, in NASM or MASM (Intel syntax). In particular:

vmovapd xmm0, XMMWORD PTR [rax]

works like a charm.

vmovapd ymm0, YMMWORD PTR [rax]

throws an exception:

Exception levée à 0x00007FF73F7818EC dans x64asm.exe : 0xC0000005 : Violation d'accès lors de la lecture de l'emplacement 0xFFFFFFFFFFFFFFFF.

I don't understand what I did wrong.

assembly
x86-64
nasm
avx2
masm64
asked on Stack Overflow Jan 30, 2020 by Etienne Sauvage • edited Jan 30, 2020 by Etienne Sauvage

1 Answer

0

It's OK, it was due to misaligned arrays.

Thank you for your time and your explanation.

answered on Stack Overflow Jan 30, 2020 by Etienne Sauvage

User contributions licensed under CC BY-SA 3.0