What happens if I compile my code with AVX instructions, but then run the code on a CPU without AVX extensions?

Viewed 392

If I use the -mavx flag with GCC (to use AVX instructions), but then run on a CPU that doesn't support AVX, what is the behavior? Does the program crash, produce undefined behavior, or something else?

0 Answers
Related