Controls how the compiler translates literal values for AltiVec vectors.
#pragma altivec_pim_warnings on | off | reset
When this pragma is on , the compiler follows the syntax rules described in AltiVecâ„¢ Technology Programming Interface Manual ("PIM") to specify literal values for vector objects. This syntax specifies these requirements:
When this pragma is off , the compiler expects a style more consistent with C source code conventions:
Example of using altivec_pim_warnings shows an example.
#pragma altivec_pim_warnings on
vector signed int vsi1 = (__vector signed int)(1, 2, 3, 4);
#pragma altivec_pim_warnings off
vector signed int vsi2 = {1, 2, 3, 4};