target/hppa: Use umax in do_ibranch_priv
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Mar 2024 22:53:06 +0000 (12:53 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 15 May 2024 07:58:45 +0000 (09:58 +0200)
Using umax is clearer than the same operation using movcond.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c

index 1758c6e1d4ed92f5a7285809311835ca42e33024..e9ba792065674aaa8f31b6fe3c6fab276f54ac5b 100644 (file)
@@ -1982,7 +1982,7 @@ static TCGv_i64 do_ibranch_priv(DisasContext *ctx, TCGv_i64 offset)
         dest = tcg_temp_new_i64();
         tcg_gen_andi_i64(dest, offset, -4);
         tcg_gen_ori_i64(dest, dest, ctx->privilege);
-        tcg_gen_movcond_i64(TCG_COND_GTU, dest, dest, offset, dest, offset);
+        tcg_gen_umax_i64(dest, dest, offset);
         break;
     }
     return dest;