vec_expandm

Purpose

Creates an element mask based on high-order bits in the element of the given vector.

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

Syntax

d=vec_expandm (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 unsigned char vector unsigned char
vector unsigned short vector unsigned short
vector unsigned int vector unsigned int
vector unsigned long long vector unsigned long long

Result value

All bits of each element of d are set to 0 if the high-order bit of the corresponding element of a is equal to 0; otherwise, all the bits are set to 1.