Permalink
Browse files

gcc: add AVX CPU extension selector.

  • Loading branch information...
1 parent 3858ca9 commit 107357168ec5e3967c77ca7829272aeacfc21fbe @ahkok ahkok committed Sep 20, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 compilers/gcc/plugin.d/optimize-gcc_4_7.plugin
@@ -607,6 +607,12 @@ EOF
"SSE4A" "SSE4A" $( echo ${XTRA[@]} | grep -q "SSE4A" && echo "on" || echo "off" ) "AMD Streaming SIMD (Single Instruction, Multiple Data) Extensions v4"
)
fi
+ if grep -qw avx /proc/cpuinfo; then
+ OPTIONS=(
+ ${OPTIONS[@]}
+ "AVX" "AVX" $( echo ${XTRA[@]} | grep -q "AVX" && echo "on" || echo "off" ) "AVX - Advanced Vector eXtensions (Extended SSE registers)"
+ )
+ fi
if grep -qw abm /proc/cpuinfo; then
OPTIONS=(
${OPTIONS[@]}

0 comments on commit 1073571

Please sign in to comment.