Technical: Hardware: G4
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Vector Splat Immediate Signed Integer

vec_splat_s8(arg1)
vec_splat_s16(arg1)
vec_splat_s32(arg1)
vec_splat_u8(arg1)
vec_splat_u16(arg1)
vec_splat_u32(arg1)

Each element of the result is set to the value obtained by sign-extending arg1. This permits values ranging from -16 to +15 only for the signed results. The unsigned results are obtained by casting the signed result to an unsigned value. Thus, the unsigned char result will lie in the range 0-15 or 240-255; the unsigned short result will lie in the range 0-15 or 65520-65535; and the unsigned long result will lie in the range 0-15 or 4294967280 to 4294967295.
See
Example 4 of Highlights for a diagram of this operation.

Command

Result

arg1
Maps To

vector_splat_s8

vector signed char

5-bit signed literal
vspltisb

vector_splat_s16

vector signed short

5-bit signed literal
vspltish

vector_splat_s32

vector signed long

5-bit signed literal
vspltisw

vector_splat_u8

vector unsigned char

5-bit signed literal
vspltisb

vector_splat_u16

vector unsigned short

5-bit signed literal
vspltish

vector_splat_u32

vector unsigned long

5-bit signed literal
vspltisw
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2004 Apple Computer, Inc.
All rights reserved. | Terms of use | Privacy Notice