3.4 Generating NEON instructions from C or C++ code

To generate NEON instructions from C or C++ code, specify the following compiler options:

You can also use --diag_warning=optimizations to obtain useful diagnostics from the compiler on what it can and cannot optimize or vectorize. For example:

armcc --cpu Cortex-A8 --vectorize -O3 -Otime --diag_warning=optimizations source.c


To run code that contains NEON instructions, you must enable both the FPU and NEON.

Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.