vec_splat_s16

Purpose

Returns a vector of which all the elements are set to a given value.

Syntax

d=vec_splat_s16(a)

Result and argument types

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

Table 1. Types of the returned value and function arguments
d a1
vector signed short signed int
Note:
  1. a must be a signed literal with a value in the range -16 to 15 inclusive.

Result value

Each element of the result has the value of a.