Arm CPUs including M1 macs do not support avx. AVX is an x86 specific thing.
Op was obviously talking about x86 there, trying to run x86 on arm would fail long before reaching the avx instruction unless it was emulated.
Incidentally Apple’s rosetta (the x86_64-on-arm64 emulator) does not support AVX, if I remember correctly.