int test1(int rx, int rs, int rt) {
return __builtin_HEXAGON_M2_mnaci(rx, rs, rt);
}
double test2(double rss, double rtt) {
return __builtin_HEXAGON_F2_dfadd(rss, rtt);
}
double test3(double rss, double rtt) {
return __builtin_HEXAGON_F2_dfsub(rss, rtt);
}
int test4() {
return __builtin_HEXAGON_S2_mask(1, 2);
}
typedef long HEXAGON_VecPred64 __attribute__((__vector_size__(64)))
__attribute__((aligned(64)));
typedef long HEXAGON_Vect512 __attribute__((__vector_size__(64)))
__attribute__((aligned(64)));
typedef long HEXAGON_Vect1024 __attribute__((__vector_size__(128)))
__attribute__((aligned(128)));
HEXAGON_Vect512 test5(void *in, void *out) {
HEXAGON_Vect512 v1, v2;
HEXAGON_Vect512 *p;
HEXAGON_VecPred64 q1;
p = (HEXAGON_Vect512 *)in;
v1 = *p++;
v2 = *p++;
q1 = *p++;
return __builtin_HEXAGON_V6_vaddcarrysat(v1, v2, __builtin_HEXAGON_V6_vandvrt(q1, -1));
}
HEXAGON_Vect512 test6(void *in, void *out) {
HEXAGON_Vect512 v1, v2;
HEXAGON_Vect512 *p;
p = (HEXAGON_Vect512 *)in;
v1 = *p++;
v2 = *p++;
return __builtin_HEXAGON_V6_vrotr(v1, v2);
}
HEXAGON_Vect512 test7(void *in, void *out) {
HEXAGON_Vect512 v1, v2;
HEXAGON_Vect512 *p;
p = (HEXAGON_Vect512 *)in;
v1 = *p++;
v2 = *p++;
return __builtin_HEXAGON_V6_vsatdw(v1, v2);
}
HEXAGON_Vect1024 test8(void *in1, void *in2, void *out) {
HEXAGON_Vect512 v1, v2;
HEXAGON_Vect512 *p1;
HEXAGON_Vect1024 *p2;
HEXAGON_Vect1024 vr;
p1 = (HEXAGON_Vect512 *)in1;
v1 = *p1++;
v2 = *p1++;
p2 = (HEXAGON_Vect1024 *)in2;
vr = *p2;
return __builtin_HEXAGON_V6_vasr_into(vr, v1, v2);
}