vec_splati

Purpose

Copies an immediate value into every element of a vector.

Note: This built-in function is valid only when the -mcpu option is set to target Power10 processors.

Syntax

d=vec_splati(a)

Result and argument types

The following table describes the types of the returned value and the function arguments.

Table 1. Result and argument types
d a
vector signed int const signed int
vector float const float

Result value

The result d is a vector with each element set to the value of a.