From patchwork Thu Mar 9 20:05:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 661131 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp504204wrb; Thu, 9 Mar 2023 12:25:53 -0800 (PST) X-Google-Smtp-Source: AK7set9gsIeGy1FHcSXPZQ8ZTMXiPSJoxm8x3ImUGkShsabg/SKS+XHzdRiF7gEkYgH3teNI4NMn X-Received: by 2002:ac8:5813:0:b0:3b6:694f:d710 with SMTP id g19-20020ac85813000000b003b6694fd710mr37397368qtg.50.1678393553291; Thu, 09 Mar 2023 12:25:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678393553; cv=none; d=google.com; s=arc-20160816; b=L5w7pnGxo9xaaD6wPBlqpkAtWsFce24Z/0Tn2Sj9PKKW/HAbVd6zxLqIYBEtyyKELL qZdHsi7bzK6+IKRDQQGbhEyAvLphUHlGtMSH4pz6iH/Qy2uJuB+ygXqVqbFyAMpRHn/h 0qTolvOLee4czEoOC4yxxPTeCzBBOUaYImyhKWrLZ1BYvWItKPCAvL5NixshOvtuSQYV LsXlngGaIY1lqagM/caTX73yQrfCUlxDHaRt23cU8ceCIb+ALNz7CetJ5rpqg1F4arKM 79dWvJEIJq2AAGqatgOetys8DTVKJwJ6HGcMyfCLzKky7Ns5QyXZL42RTRc2yBSGSEeK tLCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+zWXPWsNn/T5rs7QBqKWIBFLCiOz5GjmUC081+TrIco=; b=RuLQDHPh8zeEqkFEItnrRh0MP+X+EppmZsrox4oXejlYjmkEta4IR/WGqWlN8Mb7Gt s9sxtTgGrEwnMGfvf50zW0PdXouez8VujaIAWMORuwEta2/9h++05V/h2BAipsCdnTQ6 jsrVbgFQusyOttZ8Ri65jPiEOkPOzkc0lgWJHjqljFTN46pI9Ml+XQnRkUhDMtWdBuUJ +6NtszBIFOawNOm1b2pdtKfphh4e07hX4V94XC+A8tGh927hDcz8hceoIRbnDT+Qb58x sIx4Duzdk4AJ1b2rIWFvoakWB9s4gwBmq40Hz6lOZcASMlp4cdg9kTo38QxfcUkVoF4w IJEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Am++shUM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b19-20020ac87fd3000000b003af4843cbbcsi15387887qtk.290.2023.03.09.12.25.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Mar 2023 12:25:53 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Am++shUM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paMa9-00042j-Lk; Thu, 09 Mar 2023 15:09:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paMa6-0003vd-RA for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:09:42 -0500 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paMa5-0001YR-AM for qemu-devel@nongnu.org; Thu, 09 Mar 2023 15:09:42 -0500 Received: by mail-pj1-x1033.google.com with SMTP id y15-20020a17090aa40f00b00237ad8ee3a0so3020780pjp.2 for ; Thu, 09 Mar 2023 12:09:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678392580; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+zWXPWsNn/T5rs7QBqKWIBFLCiOz5GjmUC081+TrIco=; b=Am++shUME0ie8s0Zxix9QQmo6nmTF7+7JPvDJn03u1/JyMt+dWwyNfSy0rgmpt21ZJ CznWh3fv4z923dXIghIceZaapXlDeL0MYg2kCtJz3ZIUdNX15xmyTASscOHNTpjPUf6K iu5Gijnvv/r7ikQNqOr6pNdFw0HT5uQr5RwsBXu1XFvEq705IUDMDi7WhfTqEeR7ufWt cy+4OIY4rWLpqvAcRf0QdfnbO64jIanoC7Q5SmpbIygHxkaPogcR+kVd9+Vy1kvJuR3q rq3TOqamqD8PMdJ4z9TB1pao0J8OaGbf7qiTQ6eaojuVQJ11ECo1AbByGQLPInl8i20S wiFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678392580; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+zWXPWsNn/T5rs7QBqKWIBFLCiOz5GjmUC081+TrIco=; b=albkbcKreb3CakCVo4FUkPEdJ1GA1Bb5ki49ohoaMC7ZL67UJmilXOpTGEr5gohFW0 WPT8LV5KC1/fqhKduf9fT/2GKZez34R04vy6otZUgbC/nYPYREdBwsAH+aSGdSHUYiUo SzkQm+YD1IZvB6BKFyDAr1T4Q+vAHgZo4ZCMdwzdc9w6awsJZaARcpdwC6OpiSn4RcSf HgBpnc3wNYn7Ae79fUv0uuj1oTuApDkozscrKXpALLA/cLWHQTiMKlFRq4Q5Z3uHwmhr Ftk0akEHPK9yPO7O9b5E4/+7j7mjk9T4Gb/DUayVCyWrfiwbci+XS5q5alDrV3/O7bDU PULQ== X-Gm-Message-State: AO0yUKXKokXW23KYR01B5M2Ei0CTgApLuU5xoV784LG3z+HjXPfVFUHG 3XkxMOxTjrpIPttODgh36WjkW30rMmeMjuyzKFo= X-Received: by 2002:a17:902:d543:b0:19b:22c2:26a1 with SMTP id z3-20020a170902d54300b0019b22c226a1mr22782568plf.9.1678392580098; Thu, 09 Mar 2023 12:09:40 -0800 (PST) Received: from stoup.. ([2602:ae:154a:9f01:bf7f:79a0:a976:bdaf]) by smtp.gmail.com with ESMTPSA id c2-20020a170902aa4200b001991e4e0bdcsm43797plr.233.2023.03.09.12.09.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 12:09:39 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL v2 54/91] target/rx: Use tcg_gen_abs_i32 Date: Thu, 9 Mar 2023 12:05:13 -0800 Message-Id: <20230309200550.3878088-55-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230309200550.3878088-1-richard.henderson@linaro.org> References: <20230309200550.3878088-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1033.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Remove the local definition of rx_abs. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/rx/translate.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/target/rx/translate.c b/target/rx/translate.c index 6624414739..998e6e0b7e 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; }