If the following compilation option is used
–O3 –mtune=barcelona –msse4.2 –fprefetch-loop-arrays
How to know from assembly listing that the SIMD instructions are used ?
Assuming you're working on Linux (or similar), you can use objdump
to examine the assembler of your object file or executable. You can then examine it for instances of SIMD instructions.