• Home
  • Raw
  • Download

Lines Matching refs:W

55 #define VAR(V,T,W) xNAME(V,T##W)  argument
56 #define VAR_DECL(V, T, W) T##W##_t VAR(V,T,W) argument
58 #define VECT_NAME(T, W, N) T##W##x##N argument
59 #define VECT_ARRAY_NAME(T, W, N, L) T##W##x##N##x##L argument
60 #define VECT_TYPE(T, W, N) xNAME(VECT_NAME(T,W,N),t) argument
61 #define VECT_ARRAY_TYPE(T, W, N, L) xNAME(VECT_ARRAY_NAME(T,W,N,L),t) argument
63 #define VECT_VAR(V,T,W,N) xNAME(V,VECT_NAME(T,W,N)) argument
64 #define VECT_VAR_DECL(V, T, W, N) T##W##_t VECT_VAR(V,T,W,N) argument
67 #define PAD(V, T, W, N) char VECT_VAR(V,T,W,N)=42; argument
70 #define ARRAY(V, T, W, N) VECT_VAR_DECL(V,T,W,N)[N] argument
71 #define ARRAY4(V, T, W, N) VECT_VAR_DECL(V,T,W,N)[4] argument
74 #define VECT_ARRAY_VAR(V,T,W,N,L) xNAME(V,VECT_ARRAY_NAME(T,W,N,L)) argument
75 #define VECT_ARRAY(V, T, W, N, L) T##W##_t VECT_ARRAY_VAR(V,T,W,N,L)[N*L] argument
78 #define DUMP(MSG,T,W,N,FMT) \ argument
80 STR(VECT_VAR(result, T, W, N))); \
83 fprintf(ref_file, "%" FMT ", ", VECT_VAR(result, T, W, N)[i]); \
86 DUMP4GCC(MSG,T,W,N,FMT);
89 #define DUMP_POLY(MSG,T,W,N,FMT) \ argument
91 STR(VECT_VAR(result, T, W, N))); \
95 (uint##W##_t)VECT_VAR(result, T, W, N)[i]); \
98 DUMP4GCC(MSG,T,W,N,FMT);
100 #define DUMP_FP(MSG,T,W,N,FMT) \ argument
102 STR(VECT_VAR(result, T, W, N))); \
106 uint##W##_t i; \
107 float##W##_t f; \
109 tmp.f = VECT_VAR(result, T, W, N)[i]; \
113 DUMP4GCC_FP(MSG,T,W,N,FMT);
115 #define DUMP4GCC(MSG,T,W,N,FMT) \ argument
117 STR(T), W, N); \
120 if (W < 32) { \
121 uint32_t tmp = (uint##W##_t) VECT_VAR(result, T, W, N)[i]; \
124 fprintf(gcc_tests_file, "0x%" FMT ", ", VECT_VAR(result, T, W, N)[i]); \
127 if (W < 32) { \
128 uint32_t tmp = (uint##W##_t) VECT_VAR(result, T, W, N)[i]; \
131 fprintf(gcc_tests_file, "0x%" FMT, VECT_VAR(result, T, W, N)[i]); \
135 #define DUMP4GCC_FP(MSG,T,W,N,FMT) \ argument
138 uint##W##_t i; \
139 float##W##_t f; \
142 "hfloat", W, N); \
145 tmp.f = VECT_VAR(result, T, W, N)[i]; \
148 tmp.f = VECT_VAR(result, T, W, N)[i]; \
156 #define DUMP_FP16(MSG,T,W,N,FMT) \ argument
158 STR(VECT_VAR(result, T, W, N))); \
161 uint##W##_t tmp; \
162 tmp = (uint##W##_t)VECT_VAR(result, T, W, N)[i]; \
166 DUMP4GCC_FP16(MSG,T,W,N,FMT);
168 #define DUMP4GCC_FP16(MSG,T,W,N,FMT) \ argument
170 uint##W##_t tmp; \
172 "hfloat", W, N); \
175 tmp = (uint##W##_t)VECT_VAR(result, T, W, N)[i]; \
178 tmp = (uint##W##_t)VECT_VAR(result, T, W, N)[i]; \
189 #define CLEAN(VAR,T,W,N) \ argument
190 memset(VECT_VAR(VAR, T, W, N), \
192 sizeof(VECT_VAR(VAR, T, W, N)));
194 #define CHECK_INIT(VAR,Q,T1,T2,W,N) \ argument
196 ARRAY(check_result, T1, W, N); \
199 vst1##Q##_##T2##W(VECT_VAR(check_result, T1, W, N), \
200 VECT_VAR(VAR, T1, W, N)); \
206 STR(VECT_VAR(VAR, T1, W, N)), i, \
207 VECT_VAR(check_result, T1, W, N)[i]); \
663 #define DECL_VARIABLE(VAR, T1, W, N) \ argument
664 volatile VECT_TYPE(T1, W, N) VECT_VAR(VAR, T1, W, N)
717 #define VDUP(VAR, Q, T1, T2, W, N, V) \ argument
718 VECT_VAR(VAR, T1, W, N) = vdup##Q##_n_##T2##W(V)
720 #define TEST_VSET_LANE(VAR, Q, T1, T2, W, N, L, V) \ argument
721 VECT_VAR(VAR, T1, W, N) = vset##Q##_lane_##T2##W(V, \
722 VECT_VAR(VAR, T1, W, N), \
726 #define VLOAD(VAR, BUF, Q, T1, T2, W, N) \ argument
727 VECT_VAR(VAR, T1, W, N) = vld1##Q##_##T2##W(VECT_VAR(BUF, T1, W, N))