Copy some AVX support from MCJIT to JIT. Maybe will fix PR12748.