#include <altivec.h>
extern vector signed int vsi;
extern vector unsigned int vui;
extern vector float vf;
extern vector unsigned char vuc;
extern vector signed __int128 vsllli;
void testInsertWord(void) {
int index = 5;
vector unsigned char v1 = vec_insert4b(vui, vuc, index); vector unsigned long long v2 = vec_extract4b(vuc, index); }
void testXXPERMDI(int index) {
vec_xxpermdi(vsi); vec_xxpermdi(vsi, vsi, 2, 4); vec_xxpermdi(vsi, vsi, index); vec_xxpermdi(1, 2, 3); vec_xxpermdi(vsi, vuc, 2); }
void testXXSLDWI(int index) {
vec_xxsldwi(vsi); vec_xxsldwi(vsi, vsi, 2, 4); vec_xxsldwi(vsi, vsi, index); vec_xxsldwi(1, 2, 3); vec_xxsldwi(vsi, vuc, 2); }
void testCTF(int index) {
vec_ctf(vsi, index); vec_ctf(vui, index); }
void testVCFSX(int index) {
vec_vcfsx(vsi, index); }
void testVCFUX(int index) {
vec_vcfux(vui, index); }
void testCTS(int index) {
vec_cts(vf, index);
}
void testVCTSXS(int index) {
vec_vctsxs(vf, index); }
void testCTU(int index) {
vec_ctu(vf, index);
}
void testVCTUXS(int index) {
vec_vctuxs(vf, index); }
void testUnpack128(int index) {
__builtin_unpack_vector_int128(vsllli, index); __builtin_unpack_vector_int128(vsllli, 5); }
void testDSS(int index) {
vec_dss(index); vec_dss(5); }
void testDST(int index) {
vec_dst(&vsi, index, index); vec_dst(&vsi, index, 5); vec_dstt(&vsi, index, index); vec_dstt(&vsi, index, 5); vec_dstst(&vsi, index, index); vec_dstst(&vsi, index, 5); vec_dststt(&vsi, index, index); vec_dststt(&vsi, index, 5); }