diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-02-26 10:03:02 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-03-13 06:44:37 -0700 |
commit | 4b01ff2561a346570525c084ec71e0a3c3bb5c45 (patch) | |
tree | 22a879d5451432753d33f73b2f650de5978bc904 /target/rx | |
parent | c3be8116d9c9f2940807ab9d2729d244295c0a23 (diff) | |
download | qemu-4b01ff2561a346570525c084ec71e0a3c3bb5c45.zip qemu-4b01ff2561a346570525c084ec71e0a3c3bb5c45.tar.gz qemu-4b01ff2561a346570525c084ec71e0a3c3bb5c45.tar.bz2 |
target/rx: Use tcg_gen_abs_i32
Remove the local definition of rx_abs.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/rx')
-rw-r--r-- | target/rx/translate.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/target/rx/translate.c b/target/rx/translate.c index 6624414..998e6e0 100644 --- a/target/rx/translate.c +++ b/target/rx/translate.c @@ -1126,21 +1126,11 @@ static bool trans_SBB_mr(DisasContext *ctx, arg_SBB_mr *a) return true; } -static void rx_abs(TCGv ret, TCGv arg1) -{ - TCGv neg; - TCGv zero; - neg = tcg_temp_new(); - zero = tcg_const_i32(0); - tcg_gen_neg_i32(neg, arg1); - tcg_gen_movcond_i32(TCG_COND_LT, ret, arg1, zero, neg, arg1); -} - /* abs rd */ /* abs rs, rd */ static bool trans_ABS_rr(DisasContext *ctx, arg_ABS_rr *a) { - rx_gen_op_rr(rx_abs, a->rd, a->rs); + rx_gen_op_rr(tcg_gen_abs_i32, a->rd, a->rs); return true; } |