Re: [PATCH v2 18/22] target/loongarch: Add branch instruction translation

2021-07-27 Thread Song Gao
Hi, Richard. On 07/23/2021 02:38 PM, Richard Henderson wrote: > On 7/20/21 11:53 PM, Song Gao wrote: >> +/* Branch Instructions translation */ >> +static bool trans_beqz(DisasContext *ctx, arg_beqz *a) >> +{ >> +    TCGv t0, t1; >> +    int bcond_flag = 0; >> + >> +    t0 = tcg_temp_new(); >> + 

Re: [PATCH v2 18/22] target/loongarch: Add branch instruction translation

2021-07-22 Thread Richard Henderson
On 7/20/21 11:53 PM, Song Gao wrote: +/* Branch Instructions translation */ +static bool trans_beqz(DisasContext *ctx, arg_beqz *a) +{ +TCGv t0, t1; +int bcond_flag = 0; + +t0 = tcg_temp_new(); +t1 = tcg_const_i64(0); + +if (a->rj != 0) { +gen_load_gpr(t0, a->rj); +