Handle clamped ramps more aggressively earlier.
Fix avx2 detection

(was reading from ecx instead of ebx)