Search code examples
assemblycompilationsimdinstructions

SIMD instructions used in assembly listing


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 ?


Solution

  • 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.