Skip to content

Commit

Permalink
tools/checksum_benchmarks.sh: fix detecting/disabling NEON on AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed Mar 3, 2018
1 parent 6eef15d commit e9d1014
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/checksum_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,18 @@ i386|x86_64)
disable_impl "SSE2" "-mno-sse2"
fi
;;
arm*|aarch*)
arm*)
if have_cpu_feature neon; then
do_benchmark "NEON"
disable_impl "NEON" "-mfpu=vfpv3"
fi
;;
aarch*)
if have_cpu_feature asimd; then
do_benchmark "NEON"
disable_impl "NEON" "-march=armv8-a+nosimd"
fi
;;
esac
do_benchmark "generic"
do_benchmark "zlib"
Expand Down

0 comments on commit e9d1014

Please sign in to comment.