unsigned char test1(int mod, void *start) {
unsigned char *base = start;
return __builtin_HEXAGON_L2_loadrub_pci(&base, 4, mod, start);
}
unsigned char test2(int mod, void *start) {
char *base = start;
return __builtin_HEXAGON_L2_loadrb_pci(&base, 4, mod, start);
}
unsigned short test3(int mod, void *start) {
unsigned short *base = start;
return __builtin_HEXAGON_L2_loadruh_pci(&base, 4, mod, start);
}
short test4(int mod, void *start) {
short *base = start;
return __builtin_HEXAGON_L2_loadrh_pci(&base, 4, mod, start);
}
int test5(int mod, void *start) {
int *base = start;
return __builtin_HEXAGON_L2_loadri_pci(&base, 4, mod, start);
}
long long test6(int mod, void *start) {
long long *base = start;
return __builtin_HEXAGON_L2_loadrd_pci(&base, 8, mod, start);
}
unsigned char test7(int mod, void *start) {
unsigned char *base = start;
return __builtin_HEXAGON_L2_loadrub_pcr(&base, mod, start);
}
unsigned char test8(int mod, void *start) {
char *base = start;
return __builtin_HEXAGON_L2_loadrb_pcr(&base, mod, start);
}
unsigned short test9(int mod, void *start) {
unsigned short *base = start;
return __builtin_HEXAGON_L2_loadruh_pcr(&base, mod, start);
}
short test10(int mod, void *start) {
short *base = start;
return __builtin_HEXAGON_L2_loadrh_pcr(&base, mod, start);
}
int test11(int mod, void *start) {
int *base = start;
return __builtin_HEXAGON_L2_loadri_pcr(&base, mod, start);
}
long long test12(int mod, void *start) {
long long *base = start;
return __builtin_HEXAGON_L2_loadrd_pcr(&base, mod, start);
}
void test13(int mod, void *start, char v) {
void *base = start;
__builtin_HEXAGON_S2_storerb_pci(&base, 4, mod, v, start);
}
void test14(int mod, void *start, short v) {
void *base = start;
__builtin_HEXAGON_S2_storerh_pci(&base, 4, mod, v, start);
}
void test15(int mod, void *start, short v) {
void *base = start;
__builtin_HEXAGON_S2_storerf_pci(&base, 4, mod, v, start);
}
void test16(int mod, void *start, int v) {
void *base = start;
__builtin_HEXAGON_S2_storeri_pci(&base, 4, mod, v, start);
}
void test17(int mod, void *start, long long v) {
void *base = start;
__builtin_HEXAGON_S2_storerd_pci(&base, 8, mod, v, start);
}
void test18(int mod, void *start, char v) {
void *base = start;
__builtin_HEXAGON_S2_storerb_pcr(&base, mod, v, start);
}
void test19(int mod, void *start, short v) {
void *base = start;
__builtin_HEXAGON_S2_storerh_pcr(&base, mod, v, start);
}
void test20(int mod, void *start, short v) {
void *base = start;
__builtin_HEXAGON_S2_storerf_pcr(&base, mod, v, start);
}
void test21(int mod, void *start, int v) {
void *base = start;
__builtin_HEXAGON_S2_storeri_pcr(&base, mod, v, start);
}
void test22(int mod, void *start, long long v) {
void *base = start;
__builtin_HEXAGON_S2_storerd_pcr(&base, mod, v, start);
}