Intel® ISA Extensions
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

gcc and avx

anuj_goyal
Beginner
267 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
Black Belt
267 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).
srimks
New Contributor II
267 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.

Reply