I'm using -march=znver1 -DUSE_SPH_SHA tweaks for amd and sandybridge for E5 thats all
A quick note about USE_SPH_SHA, I have written 4-way (AVX) and 8-way (AVX2) implementations
of sha256 and are used in all 4-way or 8-way instances, even on Ryzen regardless of the
availability of SHA or the compile flag USE_SPH_SHA.
USE_SPH_SHA is effectively deprecated and should not be used unless your testing has proven
it to be faster on a specific algo, CPU architecture, and openssl version.
As a reminder, it has only been shown to help if the CPU doesn't have SHA and the OS has openssl-1.0.1
or older.
As with all options, or deviations from defaults, they should only be used when a need or benefit
has been proven for the particular set of circumstances.