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

gcc and avx

anuj_goyal
Начинающий
1 369Просмотр.
Can someone post an example of how to write an accumlate (for eight 32bit regs) using the vector instructions in AVX?

It would be best if the code could be written with gcc (extensions are ok).
0 баллов
2 Ответы
TimP
Почетный участник III
1 369Просмотр.
You would require the ix86/avx branch of gcc 4.4 http://www.gnu.org/software/gcc/svn.html AVX support presumably is mainly floating point; ideally, a float sum reduction in C should work with -ffast-math (doubt if it is so yet).
srimks
Новый участник II
1 369Просмотр.
GCC-v4.4 & Binutils(v-2.18.50.0.9) has AVX support, but remember it's just 128-bit extension currently by GCC.

Ответить