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

gcc and avx

anuj_goyal
Beginner
736 Views
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 Kudos
2 Replies
TimP
Honored Contributor III
736 Views
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).
0 Kudos
srimks
New Contributor II
736 Views
GCC-v4.4 & Binutils(v-2.18.50.0.9) has AVX support, but remember it's just 128-bit extension currently by GCC.

0 Kudos
Reply