Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
1085 Discussions

How to use ymm registers as a "memory-like" storage location

New Contributor I

I would like to use 10 AVX2 ymm registers (ymm0 - ymm9) as a storage location fow 80 DWORD (uint32_t) data.

How to program a function for storing and reading DWORD data from ymm registers in "Visual Studio 2022" with AVX2 enabled using intrinsic commands (and/or MAKRO/ASM).

I need to create a function void S(int x, uint32_t y) and uint32_t R(int x) to store and read uint32_t value to ymm0-9 register at the proper position.

For example S(20, 0x1234) should store the value to ymm2 at the position 3

0 Kudos
0 Replies