Skip to content

Commit

Permalink
Binutils before 2.21 does not support AVX2
Browse files Browse the repository at this point in the history
Thanks to Pere Mato Vila <Pere.Mato@cern.ch> for the patch.

Fixes: gh-104
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Feb 9, 2016
1 parent 3c7e994 commit e26e671
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/VcMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ macro(vc_check_assembler)
set(Vc_XOP_INTRINSICS_BROKEN true)
set(Vc_FMA4_INTRINSICS_BROKEN true)
elseif(_as_version VERSION_LESS "2.21.0")
UserWarning("Your binutils is too old (${_as_version}) for XOP instructions. They will therefore not be provided in libVc.")
UserWarning("Your binutils is too old (${_as_version}) for XOP and AVX2 instructions. They will therefore not be provided in libVc.")
set(Vc_XOP_INTRINSICS_BROKEN true)
set(Vc_AVX2_INTRINSICS_BROKEN true)
endif()
endif()
endmacro()
Expand Down

0 comments on commit e26e671

Please sign in to comment.