Lines Matching refs:a
10 static bool trans_fsel(DisasContext *ctx, arg_fsel *a)
13 TCGv dest = get_fpr(ctx, a->fd);
14 TCGv src1 = get_fpr(ctx, a->fj);
15 TCGv src2 = get_fpr(ctx, a->fk);
25 tcg_gen_ld8u_tl(cond, tcg_env, offsetof(CPULoongArchState, cf[a->ca]));
27 set_fpr(a->fd, dest);
32 static bool gen_f2f(DisasContext *ctx, arg_ff *a,
35 TCGv dest = get_fpr(ctx, a->fd);
36 TCGv src = get_fpr(ctx, a->fj);
44 set_fpr(a->fd, dest);
49 static bool gen_r2f(DisasContext *ctx, arg_fr *a,
52 TCGv src = gpr_src(ctx, a->rj, EXT_NONE);
53 TCGv dest = get_fpr(ctx, a->fd);
62 set_fpr(a->fd, dest);
67 static bool gen_f2r(DisasContext *ctx, arg_rf *a,
70 TCGv dest = gpr_dst(ctx, a->rd, EXT_NONE);
71 TCGv src = get_fpr(ctx, a->fj);
80 gen_set_gpr(a->rd, dest, EXT_NONE);
85 static bool trans_movgr2fcsr(DisasContext *ctx, arg_movgr2fcsr *a)
87 uint32_t mask = fcsr_mask[a->fcsrd];
88 TCGv Rj = gpr_src(ctx, a->rj, EXT_NONE);
120 static bool trans_movfcsr2gr(DisasContext *ctx, arg_movfcsr2gr *a)
122 TCGv dest = gpr_dst(ctx, a->rd, EXT_NONE);
131 tcg_gen_andi_i64(dest, dest, fcsr_mask[a->fcsrs]);
132 gen_set_gpr(a->rd, dest, EXT_NONE);
152 static bool trans_movfr2cf(DisasContext *ctx, arg_movfr2cf *a)
155 TCGv src = get_fpr(ctx, a->fj);
165 tcg_gen_st8_tl(t0, tcg_env, offsetof(CPULoongArchState, cf[a->cd & 0x7]));
170 static bool trans_movcf2fr(DisasContext *ctx, arg_movcf2fr *a)
172 TCGv dest = get_fpr(ctx, a->fd);
181 offsetof(CPULoongArchState, cf[a->cj & 0x7]));
182 set_fpr(a->fd, dest);
187 static bool trans_movgr2cf(DisasContext *ctx, arg_movgr2cf *a)
198 tcg_gen_andi_tl(t0, gpr_src(ctx, a->rj, EXT_NONE), 0x1);
199 tcg_gen_st8_tl(t0, tcg_env, offsetof(CPULoongArchState, cf[a->cd & 0x7]));
204 static bool trans_movcf2gr(DisasContext *ctx, arg_movcf2gr *a)
212 tcg_gen_ld8u_tl(gpr_dst(ctx, a->rd, EXT_NONE), tcg_env,
213 offsetof(CPULoongArchState, cf[a->cj & 0x7]));