On 28 January 2014 17:21, Richard Henderson <rth@xxxxxxxxxxx> wrote: > On 01/26/2014 11:25 AM, Peter Maydell wrote: >> +/* Helper functions for pairwise 32 bit comparisons */ >> +static void gen_pmax_s32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) >> +{ >> + tcg_gen_movcond_i32(TCG_COND_GE, res, op1, op2, op1, op2); >> +} >> + >> +static void gen_pmax_u32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) >> +{ >> + tcg_gen_movcond_i32(TCG_COND_GEU, res, op1, op2, op1, op2); >> +} >> + >> +static void gen_pmin_s32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) >> +{ >> + tcg_gen_movcond_i32(TCG_COND_LE, res, op1, op2, op1, op2); >> +} >> + >> +static void gen_pmin_u32(TCGv_i32 res, TCGv_i32 op1, TCGv_i32 op2) >> +{ >> + tcg_gen_movcond_i32(TCG_COND_LEU, res, op1, op2, op1, op2); >> +} > > These are exactly the sort of helpers I expected to see in the previous patch. > Thus my question re neon_{min,max}_{s,u}32. OK, I'll move these to the previous patch and use them there too. I suspect that the reason for teh helpers existing is they predate the movcond op. thanks -- PMM _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm