Home
last modified time | relevance | path

Searched full:src2 (Results 1 – 25 of 174) sorted by relevance

1234567

/openbmc/qemu/target/sparc/
H A Dvis_helper.c101 uint64_t helper_fpmerge(uint32_t src1, uint32_t src2) in helper_fpmerge() argument
107 s2.l = src2; in helper_fpmerge()
127 uint64_t helper_fmul8x16(uint32_t src1, uint64_t src2) in helper_fmul8x16() argument
133 d.ll = src2; in helper_fmul8x16()
143 uint64_t helper_fmul8x16a(uint32_t src1, int32_t src2) in helper_fmul8x16a() argument
151 d.VIS_W64(0) = do_ms16b(s.VIS_B32(0), src2); in helper_fmul8x16a()
152 d.VIS_W64(1) = do_ms16b(s.VIS_B32(1), src2); in helper_fmul8x16a()
153 d.VIS_W64(2) = do_ms16b(s.VIS_B32(2), src2); in helper_fmul8x16a()
154 d.VIS_W64(3) = do_ms16b(s.VIS_B32(3), src2); in helper_fmul8x16a()
159 uint64_t helper_fmul8sux16(uint64_t src1, uint64_t src2) in helper_fmul8sux16() argument
[all …]
H A Dfop_helper.c88 float32 helper_fadds(CPUSPARCState *env, float32 src1, float32 src2) in helper_fadds() argument
90 float32 ret = float32_add(src1, src2, &env->fp_status); in helper_fadds()
95 float32 helper_fsubs(CPUSPARCState *env, float32 src1, float32 src2) in helper_fsubs() argument
97 float32 ret = float32_sub(src1, src2, &env->fp_status); in helper_fsubs()
102 float32 helper_fmuls(CPUSPARCState *env, float32 src1, float32 src2) in helper_fmuls() argument
104 float32 ret = float32_mul(src1, src2, &env->fp_status); in helper_fmuls()
109 float32 helper_fdivs(CPUSPARCState *env, float32 src1, float32 src2) in helper_fdivs() argument
111 float32 ret = float32_div(src1, src2, &env->fp_status); in helper_fdivs()
116 float64 helper_faddd(CPUSPARCState *env, float64 src1, float64 src2) in helper_faddd() argument
118 float64 ret = float64_add(src1, src2, &env->fp_status); in helper_faddd()
[all …]
H A Dhelper.c133 target_ulong src2) in helper_taddcctv() argument
138 if ((src1 | src2) & 3) { in helper_taddcctv()
142 dst = src1 + src2; in helper_taddcctv()
145 v = ~(src1 ^ src2) & (src1 ^ dst); in helper_taddcctv()
156 env->icc_C = dst ^ src1 ^ src2; in helper_taddcctv()
169 target_ulong src2) in helper_tsubcctv() argument
174 if ((src1 | src2) & 3) { in helper_tsubcctv()
178 dst = src1 - src2; in helper_tsubcctv()
181 v = (src1 ^ src2) & (src1 ^ dst); in helper_tsubcctv()
192 env->icc_C = dst ^ src1 ^ src2; in helper_tsubcctv()
[all …]
/openbmc/qemu/target/loongarch/tcg/insn_trans/
H A Dtrans_arith.c.inc12 TCGv src2 = gpr_src(ctx, a->rk, src2_ext);
14 func(dest, src1, src2);
26 TCGv src2 = tcg_constant_tl(a->imm);
28 func(dest, src1, src2);
53 TCGv src2 = gpr_src(ctx, a->rk, src_ext);
55 func(dest, src1, src2, a->sa);
83 static void gen_slt(TCGv dest, TCGv src1, TCGv src2)
85 tcg_gen_setcond_tl(TCG_COND_LT, dest, src1, src2);
88 static void gen_sltu(TCGv dest, TCGv src1, TCGv src2)
90 tcg_gen_setcond_tl(TCG_COND_LTU, dest, src1, src2);
[all …]
H A Dtrans_shift.c.inc6 static void gen_sll_w(TCGv dest, TCGv src1, TCGv src2)
9 tcg_gen_andi_tl(t0, src2, 0x1f);
13 static void gen_srl_w(TCGv dest, TCGv src1, TCGv src2)
16 tcg_gen_andi_tl(t0, src2, 0x1f);
20 static void gen_sra_w(TCGv dest, TCGv src1, TCGv src2)
23 tcg_gen_andi_tl(t0, src2, 0x1f);
27 static void gen_sll_d(TCGv dest, TCGv src1, TCGv src2)
30 tcg_gen_andi_tl(t0, src2, 0x3f);
34 static void gen_srl_d(TCGv dest, TCGv src1, TCGv src2)
37 tcg_gen_andi_tl(t0, src2, 0x3f);
[all …]
H A Dtrans_fmemory.c.inc46 TCGv src2 = gpr_src(ctx, a->rk, EXT_NONE);
52 addr = make_address_x(ctx, src1, src2);
63 TCGv src2 = gpr_src(ctx, a->rk, EXT_NONE);
69 addr = make_address_x(ctx, src1, src2);
78 TCGv src2 = gpr_src(ctx, a->rk, EXT_NONE);
84 gen_helper_asrtgt_d(tcg_env, src1, src2);
85 addr = make_address_x(ctx, src1, src2);
96 TCGv src2 = gpr_src(ctx, a->rk, EXT_NONE);
102 gen_helper_asrtgt_d(tcg_env, src1, src2);
103 addr = make_address_x(ctx, src1, src2);
[all …]
H A Dtrans_branch.c.inc35 static void gen_bc(DisasContext *ctx, TCGv src1, TCGv src2,
39 tcg_gen_brcond_tl(cond, src1, src2, l);
49 TCGv src2 = gpr_src(ctx, a->rd, EXT_NONE);
51 gen_bc(ctx, src1, src2, a->offs, cond);
58 TCGv src2 = tcg_constant_tl(0);
60 gen_bc(ctx, src1, src2, a->offs, cond);
67 TCGv src2 = tcg_constant_tl(0);
71 gen_bc(ctx, src1, src2, a->offs, cond);
/openbmc/qemu/target/i386/tcg/
H A Dcc_helper_template.h.inc50 DATA_TYPE src2 = dst - src1;
54 af = (dst ^ src1 ^ src2) & CC_A;
57 of = lshift((src1 ^ src2 ^ -1) & (src1 ^ dst), 12 - DATA_BITS) & CC_O;
73 DATA_TYPE src2 = dst - src13;
77 DATA_TYPE src2 = dst - src1 - src3;
83 af = (dst ^ src1 ^ src2) & 0x10;
86 of = lshift((src1 ^ src2 ^ -1) & (src1 ^ dst), 12 - DATA_BITS) & CC_O;
102 static uint32_t glue(compute_all_sub, SUFFIX)(DATA_TYPE dst, DATA_TYPE src2)
105 DATA_TYPE src1 = dst + src2;
107 cf = src1 < src2;
[all …]
H A Dcc_helper.c46 target_ulong src2) in compute_all_adcx() argument
52 target_ulong src2) in compute_all_adox() argument
54 return (src1 & ~CC_O) | (src2 * CC_O); in compute_all_adox()
58 target_ulong src2) in compute_all_adcox() argument
60 return (src1 & ~(CC_C | CC_O)) | (dst * CC_C) | (src2 * CC_O); in compute_all_adcox()
77 target_ulong src2, int op) in helper_cc_compute_all() argument
103 return compute_all_adcb(dst, src1, src2); in helper_cc_compute_all()
105 return compute_all_adcw(dst, src1, src2); in helper_cc_compute_all()
107 return compute_all_adcl(dst, src1, src2); in helper_cc_compute_all()
117 return compute_all_sbbb(dst, src1, src2); in helper_cc_compute_all()
[all …]
/openbmc/linux/kernel/bpf/
H A Dcpumask.c130 * @src2: The second cpumask.
133 * struct bpf_cpumask pointers may be safely passed to @src1 and @src2.
136 const struct cpumask *src2) in bpf_cpumask_first_and() argument
138 return cpumask_first_and(src1, src2); in bpf_cpumask_first_and()
241 * @src2: The second input.
247 * struct bpf_cpumask pointers may be safely passed to @src1 and @src2.
251 const struct cpumask *src2) in bpf_cpumask_and() argument
253 return cpumask_and((struct cpumask *)dst, src1, src2); in bpf_cpumask_and()
260 * @src2: The second input.
262 * struct bpf_cpumask pointers may be safely passed to @src1 and @src2.
[all …]
/openbmc/qemu/include/qemu/
H A Dbitmap.h28 * bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2
29 * bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2
30 * bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2
31 * bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2)
33 * bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal?
34 * bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap?
145 const unsigned long *src2, long nbits) in bitmap_and() argument
148 return (*dst = *src1 & *src2) != 0; in bitmap_and()
150 return slow_bitmap_and(dst, src1, src2, nbits); in bitmap_and()
154 const unsigned long *src2, long nbits) in bitmap_or() argument
[all …]
/openbmc/linux/lib/crypto/
H A Dutils.c13 * XOR @len bytes from @src1 and @src2 together, writing the result to @dst
17 void __crypto_xor(u8 *dst, const u8 *src1, const u8 *src2, unsigned int len) in __crypto_xor() argument
24 ((unsigned long)dst ^ (unsigned long)src2)) & in __crypto_xor()
36 *dst++ = *src1++ ^ *src2++; in __crypto_xor()
44 get_unaligned((u64 *)src2); in __crypto_xor()
47 *(u64 *)dst = *(u64 *)src1 ^ *(u64 *)src2; in __crypto_xor()
51 src2 += 8; in __crypto_xor()
58 get_unaligned((u32 *)src2); in __crypto_xor()
61 *(u32 *)dst = *(u32 *)src1 ^ *(u32 *)src2; in __crypto_xor()
65 src2 += 4; in __crypto_xor()
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dkvm_fpu.h18 extern void fps_fadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
19 extern void fps_fdivs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
20 extern void fps_fmuls(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
21 extern void fps_fsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2);
23 extern void fps_fmadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
25 extern void fps_fmsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
27 extern void fps_fnmadds(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
29 extern void fps_fnmsubs(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
31 extern void fps_fsel(u64 *fpscr, u32 *dst, u32 *src1, u32 *src2,
37 u64 *dst, u64 *src1, u64 *src2);
[all …]
/openbmc/linux/arch/arm64/lib/
H A Dmemcmp.S21 #define src2 x1 macro
40 ldr data2, [src2], 8
48 ldr data2, [src2, limit]
53 ldr data2, [src2], 8
67 /* Align src1 and adjust src2 with bytes not yet done. */
71 sub src2, src2, tmp1
79 ldp data2, data2h, [src2], 16
95 add src2, src2, limit
97 ldp data2, data2h, [src2]
122 ldr data2w, [src2], 4
[all …]
H A Dstrncmp.S25 #define src2 x1 macro
63 eor tmp1, src1, src2
76 ldr data2, [src2], #8
165 bic src2, src2, #7
168 ldr data2, [src2], #8
187 ldrb data2w, [src2], #1
206 ldrb data2w, [src2], #1
218 src2 | x x x x x a a a a a a a a b b b | c c c c c . . .
227 Align SRC2 down to 16 bytes. This way we can read 16 bytes at a
228 time from SRC2. The comparison happens in 3 steps. After each step
[all …]
/openbmc/qemu/target/riscv/insn_trans/
H A Dtrans_rvf.c.inc102 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
106 gen_helper_fmadd_s(dest, tcg_env, src1, src2, src3);
119 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
123 gen_helper_fmsub_s(dest, tcg_env, src1, src2, src3);
136 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
140 gen_helper_fnmsub_s(dest, tcg_env, src1, src2, src3);
153 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
157 gen_helper_fnmadd_s(dest, tcg_env, src1, src2, src3);
170 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
173 gen_helper_fadd_s(dest, tcg_env, src1, src2);
[all …]
H A Dtrans_rvzfh.c.inc94 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
98 gen_helper_fmadd_h(dest, tcg_env, src1, src2, src3);
111 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
115 gen_helper_fmsub_h(dest, tcg_env, src1, src2, src3);
128 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
132 gen_helper_fnmsub_h(dest, tcg_env, src1, src2, src3);
145 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
149 gen_helper_fnmadd_h(dest, tcg_env, src1, src2, src3);
162 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
165 gen_helper_fadd_h(dest, tcg_env, src1, src2);
[all …]
H A Dtrans_rvd.c.inc114 TCGv_i64 src2 = get_fpr_d(ctx, a->rs2);
118 gen_helper_fmadd_d(dest, tcg_env, src1, src2, src3);
132 TCGv_i64 src2 = get_fpr_d(ctx, a->rs2);
136 gen_helper_fmsub_d(dest, tcg_env, src1, src2, src3);
150 TCGv_i64 src2 = get_fpr_d(ctx, a->rs2);
154 gen_helper_fnmsub_d(dest, tcg_env, src1, src2, src3);
168 TCGv_i64 src2 = get_fpr_d(ctx, a->rs2);
172 gen_helper_fnmadd_d(dest, tcg_env, src1, src2, src3);
186 TCGv_i64 src2 = get_fpr_d(ctx, a->rs2);
189 gen_helper_fadd_d(dest, tcg_env, src1, src2);
[all …]
H A Dtrans_rvzfa.c.inc188 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
190 gen_helper_fminm_s(dest, tcg_env, src1, src2);
205 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
207 gen_helper_fmaxm_s(dest, tcg_env, src1, src2);
222 TCGv_i64 src2 = get_fpr_d(ctx, a->rs2);
224 gen_helper_fminm_d(dest, tcg_env, src1, src2);
239 TCGv_i64 src2 = get_fpr_d(ctx, a->rs2);
241 gen_helper_fmaxm_d(dest, tcg_env, src1, src2);
256 TCGv_i64 src2 = get_fpr_hs(ctx, a->rs2);
258 gen_helper_fminm_h(dest, tcg_env, src1, src2);
[all …]
/openbmc/linux/tools/include/linux/
H A Dbitmap.h74 const unsigned long *src2, unsigned int nbits) in bitmap_or() argument
77 *dst = *src1 | *src2; in bitmap_or()
79 __bitmap_or(dst, src1, src2, nbits); in bitmap_or()
114 * @src2: operand 2
118 const unsigned long *src2, unsigned int nbits) in bitmap_and() argument
121 return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0; in bitmap_and()
122 return __bitmap_and(dst, src1, src2, nbits); in bitmap_and()
133 const unsigned long *src2, unsigned int nbits) in bitmap_equal() argument
136 return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits)); in bitmap_equal()
139 return !memcmp(src1, src2, nbits / 8); in bitmap_equal()
[all …]
/openbmc/qemu/tests/tcg/hexagon/
H A Dusr.c105 static RESTYPE NAME(SRC1TYPE src1, SRC2TYPE src2, uint32_t *usr_result) \
113 : "r"(src1), "r"(src2) \
142 static RESTYPE NAME(SRC1TYPE src1, SRC2TYPE src2, \
153 : "r"(src1), "r"(src2) \
165 static RESTYPE NAME(SRC1TYPE src1, int32_t src2, uint32_t *usr_result) \
173 : "r"(src1), "i"(src2) \
190 static RESTYPE NAME(RESTYPE result, SRC1TYPE src1, SRC2TYPE src2, \
198 : "r"(src1), "r"(src2) \
218 static RESTYPE NAME(RESTYPE result, SRC1TYPE src1, SRC2TYPE src2, \
228 : "r"(src1), "r"(src2) \
[all …]
/openbmc/linux/include/linux/
H A Dbitmap.h43 * bitmap_and(dst, src1, src2, nbits) *dst = *src1 & *src2
44 * bitmap_or(dst, src1, src2, nbits) *dst = *src1 | *src2
45 * bitmap_xor(dst, src1, src2, nbits) *dst = *src1 ^ *src2
46 * bitmap_andnot(dst, src1, src2, nbits) *dst = *src1 & ~(*src2)
48 * bitmap_equal(src1, src2, nbits) Are *src1 and *src2 equal?
49 * bitmap_intersects(src1, src2, nbits) Do *src1 and *src2 overlap?
50 * bitmap_subset(src1, src2, nbits) Is *src1 a subset of *src2?
54 * bitmap_weight_and(src1, src2, nbits) Hamming Weight of and'ed bitmap
145 const unsigned long *src2,
337 const unsigned long *src2, unsigned int nbits) in bitmap_and() argument
[all …]
H A Dlinkmode.h36 const unsigned long *src2) in linkmode_andnot() argument
38 return bitmap_andnot(dst, src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_andnot()
75 const unsigned long *src2) in linkmode_equal() argument
77 return bitmap_equal(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_equal()
81 const unsigned long *src2) in linkmode_intersects() argument
83 return bitmap_intersects(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_intersects()
87 const unsigned long *src2) in linkmode_subset() argument
89 return bitmap_subset(src1, src2, __ETHTOOL_LINK_MODE_MASK_NBITS); in linkmode_subset()
/openbmc/qemu/target/arm/tcg/
H A Dneon_helper.c195 #define NEON_FN(dest, src1, src2) dest = (src1 < src2) ? src1 : src2 argument
202 #define NEON_FN(dest, src1, src2) dest = (src1 > src2) ? src1 : src2 argument
209 #define NEON_FN(dest, src1, src2) \ argument
210 (dest = do_uqrshl_bhs(src1, (int8_t)src2, 16, false, NULL))
214 #define NEON_FN(dest, src1, src2) \ argument
215 (dest = do_sqrshl_bhs(src1, (int8_t)src2, 16, false, NULL))
219 #define NEON_FN(dest, src1, src2) \ argument
220 (dest = do_sqrshl_bhs(src1, (int8_t)src2, 8, true, NULL))
225 #define NEON_FN(dest, src1, src2) \ argument
226 (dest = do_sqrshl_bhs(src1, (int8_t)src2, 16, true, NULL))
[all …]
/openbmc/u-boot/cmd/
H A Dbinop.c91 u8 *result, *src1, *src2; in do_binop() local
115 src2 = malloc(len); in do_binop()
123 read_from_mem(simple_strtoul(src2arg + 1, NULL, 16), src2, len); in do_binop()
125 read_from_env_var(src2arg, src2); in do_binop()
132 result[i] = src1[i] ^ src2[i]; in do_binop()
136 result[i] = src1[i] | src2[i]; in do_binop()
140 result[i] = src1[i] & src2[i]; in do_binop()
163 free(src2); in do_binop()
172 "op count [*]src1 [*]src2 [[*]dest]\n"
173 …" - compute binary operation of data at/in src1 and\n src2 (either *memaddr, env var name …

1234567