Home
last modified time | relevance | path

Searched full:j (Results 1 – 25 of 717) sorted by relevance

12345678910>>...29

/qemu/tcg/loongarch64/
H A Dtcg-insn-defs.c.inc555 encode_dj_slots(LoongArchInsn opc, uint32_t d, uint32_t j)
557 return opc | d | j << 5;
561 encode_djk_slots(LoongArchInsn opc, uint32_t d, uint32_t j, uint32_t k)
563 return opc | d | j << 5 | k << 10;
567 encode_djka_slots(LoongArchInsn opc, uint32_t d, uint32_t j, uint32_t k,
570 return opc | d | j << 5 | k << 10 | a << 15;
574 encode_djkm_slots(LoongArchInsn opc, uint32_t d, uint32_t j, uint32_t k,
577 return opc | d | j << 5 | k << 10 | m << 16;
581 encode_djkn_slots(LoongArchInsn opc, uint32_t d, uint32_t j, uint32_t k,
584 return opc | d | j << 5 | k << 10 | n << 18;
[all …]
/qemu/tests/tcg/hexagon/
H A Dhvx_misc.h21 static inline void check(int line, int i, int j, in check() argument
26 line, i, j, result, expect); in check()
58 for (int j = 0; j < MAX_VEC_SIZE_BYTES / FIELDSZ; j++) { \
59 check(line, i, j, output[i].FIELD[j], expect[i].FIELD[j]); \
74 for (int j = 0; j < MAX_VEC_SIZE_BYTES; j++) { in init_buffers() local
75 buffer0[i].b[j] = counter0++; in init_buffers()
76 buffer1[i].b[j] = counter1++; in init_buffers()
78 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 4; j++) { in init_buffers() local
79 mask[i].w[j] = (i + j % MASKMOD == 0) ? 0 : 1; in init_buffers()
108 for (int j = 0; j < MAX_VEC_SIZE_BYTES / FIELDSZ; j++) { \
[all …]
H A Dv69_hvx.c62 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 2; j++) { in test_vasrvuhubrndsat() local
67 shamt = buffer1[i].ub[2 * j + 0] & 0x7; in test_vasrvuhubrndsat()
68 byte0 = fVSATUB(fVROUND(buffer0[2 * i + 0].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat()
69 shamt = buffer1[i].ub[2 * j + 1] & 0x7; in test_vasrvuhubrndsat()
70 byte1 = fVSATUB(fVROUND(buffer0[2 * i + 1].uh[j], shamt) >> shamt); in test_vasrvuhubrndsat()
71 expect[i].uh[j] = (byte1 << 8) | (byte0 & 0xff); in test_vasrvuhubrndsat()
99 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 2; j++) { in test_vasrvuhubsat() local
104 shamt = buffer1[i].ub[2 * j + 0] & 0x7; in test_vasrvuhubsat()
105 byte0 = fVSATUB(buffer0[2 * i + 0].uh[j] >> shamt); in test_vasrvuhubsat()
106 shamt = buffer1[i].ub[2 * j + 1] & 0x7; in test_vasrvuhubsat()
[all …]
H A Dhvx_misc.c55 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 4; j++) { in test_load_tmp() local
56 expect[i].w[j] = buffer0[i].w[j] + buffer1[i].w[j] + 1; in test_load_tmp()
107 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 4; j++) { in test_load_cur() local
108 expect[i].uw[j] = buffer0[i].uw[j]; in test_load_cur()
215 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 4; j++) { in test_masked_store() local
217 if (i + j % MASKMOD != 0) { in test_masked_store()
218 expect[i].w[j] = buffer0[i].w[j]; in test_masked_store()
221 if (i + j % MASKMOD == 0) { in test_masked_store()
222 expect[i].w[j] = buffer0[i].w[j]; in test_masked_store()
344 for (int j = 0; j < MAX_VEC_SIZE_BYTES / 4; j++) { in test_vadduwsat() local
[all …]
/qemu/tests/unit/
H A Dtest-int128.c49 int i, j; in test_and() local
52 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_and()
54 Int128 b = expand(tests[j]); in test_and()
55 Int128 r = expand(tests[i] & tests[j]); in test_and()
65 int i, j; in test_add() local
68 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_add()
70 Int128 b = expand(tests[j]); in test_add()
71 Int128 r = expand(tests[i] + tests[j]); in test_add()
81 int i, j; in test_sub() local
84 for (j = 0; j < ARRAY_SIZE(tests); ++j) { in test_sub()
[all …]
H A Dtest-crypto-hash.c113 size_t j; in test_hash_alloc() local
128 for (j = 0; j < resultlen; j++) { in test_hash_alloc()
129 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_alloc()
130 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_alloc()
145 size_t j; in test_hash_prealloc() local
164 for (j = 0; j < resultlen; j++) { in test_hash_prealloc()
165 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_prealloc()
166 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_prealloc()
187 size_t j; in test_hash_iov() local
200 for (j = 0; j < resultlen; j++) { in test_hash_iov()
[all …]
H A Dtest-crypto-hmac.c102 size_t j; in test_hmac_alloc() local
119 for (j = 0; j < resultlen; j++) { in test_hmac_alloc()
120 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_alloc()
121 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_alloc()
141 size_t j; in test_hmac_prealloc() local
164 for (j = 0; j < resultlen; j++) { in test_hmac_prealloc()
165 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_prealloc()
166 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_prealloc()
186 size_t j; in test_hmac_iov() local
207 for (j = 0; j < resultlen; j++) { in test_hmac_iov()
[all …]
/qemu/target/riscv/
H A Dvcrypto_helper.c36 for (int j = 63; j >= 0; j--) { in clmul64() local
37 if ((y >> j) & 1) { in clmul64()
38 result ^= (x << j); in clmul64()
47 for (int j = 63; j >= 1; j--) { in clmulh64() local
48 if ((y >> j) & 1) { in clmulh64()
49 result ^= (x >> (64 - j)); in clmulh64()
682 for (int j = 0; j < 8; j++) { in HELPER() local
683 w[j] = bswap32(vs1[H4((i * 8) + j)]); in HELPER()
684 w[j + 8] = bswap32(vs2[H4((i * 8) + j)]); in HELPER()
686 for (int j = 0; j < 8; j++) { in HELPER() local
[all …]
/qemu/target/loongarch/tcg/
H A Dvec_helper.c696 int i, j, ofs; \
703 for (j = 0; j < ofs; j++) { \
704 Vd->E1(j + i * ofs) = Vj->E2(j + ofs + ofs * 2 * i); \
930 int i, j, ofs; \
939 for (j = 0; j < ofs; j++) { \
940 temp.E1(j + ofs * i) = (TD)Vj->E2(j + ofs * 2 * i) << (imm % BIT); \
1085 int i, j, ofs; \
1093 for (j = 0; j < ofs; j++) { \
1094 Vd->E1(j + ofs * 2 * i) = R_SHIFT(Vj->E2(j + ofs * i), \
1095 Vk->E2(j + ofs * i) % BIT); \
[all …]
/qemu/tests/tcg/xtensa/
H A Dtest_b.S13 j 2f
27 j 2f
45 j 2f
59 j 2f
65 j 2f
79 j 2f
106 j 2f
119 j 2f
133 j 2f
147 j 2f
[all …]
/qemu/tests/tcg/s390x/
H A Dlong-double.c10 int i, j; in main() local
13 for (j = 1; j < 5; j++) { in main()
14 long double la = (long double)i + j; in main()
15 long double lm = (long double)i * j; in main()
16 long double ls = (long double)i - j; in main()
18 assert(la == i + j); in main()
19 assert(lm == i * j); in main()
20 assert(ls == i - j); in main()
/qemu/tests/tcg/multiarch/
H A Dfloat_madds.c53 static void print_result(float r, int j, int k) in print_result() argument
60 printf("res: %s flags=%s (%d/%d)\n", r_fmt, flag_fmt, j, k); in print_result()
66 static void do_madds(float a, float b, float c, int j, int k) in do_madds() argument
75 print_result(r, j, k); in do_madds()
80 int i, j, k, nums = get_num_f32(); in main() local
89 for (j = 0; j < nums; j++) { in main()
91 a = get_f32(j + ((k)%3)); in main()
92 b = get_f32(j + ((k+1)%3)); in main()
93 c = get_f32(j + ((k+2)%3)); in main()
94 do_madds(a, b, c, j, k); in main()
[all …]
/qemu/ui/
H A Dvnc-enc-hextile-template.h21 int j, i; in CONCAT() local
37 for (j = 0; j < h; j++) { in CONCAT()
96 for (j = 0; j < h; j++) { in CONCAT()
103 hextile_enc_cord(data + n_data, min_x, j, i - min_x, 1); in CONCAT()
110 hextile_enc_cord(data + n_data, min_x, j, i - min_x, 1); in CONCAT()
125 for (j = 0; j < h; j++) { in CONCAT()
146 hextile_enc_cord(data + n_data, min_x, j, i - min_x, 1); in CONCAT()
166 hextile_enc_cord(data + n_data, min_x, j, i - min_x, 1); in CONCAT()
206 for (j = 0; j < h; j++) { in CONCAT()
/qemu/tests/tcg/mips/user/ase/msa/int-multiply/
H A Dtest_msa_maddv_h.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_MADDV_H(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_MADDV_H(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_MADDV_H__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
H A Dtest_msa_maddv_b.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_MADDV_B(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_MADDV_B(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_MADDV_B__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
H A Dtest_msa_msubv_w.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_MSUBV_W(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_MSUBV_W(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_MSUBV_W__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
H A Dtest_msa_msubv_b.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_MSUBV_B(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_MSUBV_B(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_MSUBV_B__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
/qemu/tests/tcg/mips/user/ase/msa/bit-move/
H A Dtest_msa_bmnz_v.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_BMNZ_V(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_BMNZ_V(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_BMNZ_V__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
H A Dtest_msa_binsr_b.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_BINSR_B(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_BINSR_B(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_BINSR_B__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
/qemu/tests/tcg/mips/user/ase/msa/fixed-multiply/
H A Dtest_msa_msubr_q_w.c42 uint32_t i, j; in main() local
167 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
168 do_msa_MADDR_Q_W(b128_pattern[i], b128_pattern[j], in main()
169 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
174 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
175 do_msa_MADDR_Q_W(b128_random[i], b128_random[j], in main()
178 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
183 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
184 do_msa_MADDR_Q_W__DDT(b128_random[i], b128_random[j], in main()
190 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
/qemu/tests/tcg/mips/user/ase/msa/pack/
H A Dtest_msa_vshf_w.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_VSHF_W(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_VSHF_W(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_VSHF_W__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
H A Dtest_msa_pckod_b.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_PCKOD_B(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_PCKOD_B(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_PCKOD_B__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
H A Dtest_msa_pckev_w.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_PCKEV_W(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_PCKEV_W(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_PCKEV_W__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
/qemu/tests/tcg/mips/user/ase/msa/int-dot-product/
H A Dtest_msa_dpsub_s_d.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_DPSUB_S_D(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_DPSUB_S_D(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_DPSUB_S_D__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]
H A Dtest_msa_dpsub_u_h.c40 uint32_t i, j; in main() local
165 for (j = 0; j < PATTERN_INPUTS_SHORT_COUNT; j++) { in main()
166 do_msa_DPSUB_U_H(b128_pattern[i], b128_pattern[j], in main()
167 b128_result[PATTERN_INPUTS_SHORT_COUNT * i + j]); in main()
172 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
173 do_msa_DPSUB_U_H(b128_random[i], b128_random[j], in main()
176 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
181 for (j = 0; j < RANDOM_INPUTS_SHORT_COUNT; j++) { in main()
182 do_msa_DPSUB_U_H__DDT(b128_random[i], b128_random[j], in main()
188 RANDOM_INPUTS_SHORT_COUNT * i + j]); in main()
[all …]

12345678910>>...29