|
From: | Richard Henderson |
Subject: | Re: [PATCH 58/70] target/tricore: Use min/max for saturate |
Date: | Sun, 26 Feb 2023 19:53:50 -1000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 |
On 2/26/23 19:42, Richard Henderson wrote:
static void gen_saturate_u(TCGv ret, TCGv arg, int32_t up) { - TCGv temp = tcg_const_i32(up); - /* sat_neg = (arg > up ) ? up : arg; */ - tcg_gen_movcond_tl(TCG_COND_GTU, ret, arg, temp, temp, arg); + tcg_gen_umin_tl(ret, ret, tcg_constant_i32(up));
Second argument must be 'arg'. r~
[Prev in Thread] | Current Thread | [Next in Thread] |