-qvector
In z/OS® XL C/C++, the -qvector option enables the vector programming support and automatically takes advantage of vector instructions for a runtime environment that supports them.
In Open XL C/C++ 1.1,
-mvx, -mzvector, -fvectorize, and
-fslp-vectorize provide similar functions as -qvector.
- -mvx
- Generates code by using the instructions that are available with the vector extension facility that is introduced with IBM z13® or later. -mvx is enabled by default when -march=z13 or newer is in effect.
- -mzvector
- Enables vector programming support using instructions available with the vector extension facility introduced with IBM z13 or newer. -mno-zvector is the default.
- -fvectorize
- Enables the loop vectorization passes. -fvectorize is enabled by default when -mvx is in effect.
- -fslp-vectorize
- Enables the superword-level parallelism vectorization passes. -fslp-vectorize is enabled by default when -mvx is in effect.
Related information
- Vector programming support in the Compiler Reference
- Clang command line argument reference