From patchwork Wed Aug 23 20:23:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 716106 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1002360wrp; Wed, 23 Aug 2023 13:26:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHhgz7OCJB8zaMRFM/gLS3EB42dgcqcHbdWkXPSC/qG2cKcCX5qcqyyj4IoHSU54zeqQfWX X-Received: by 2002:a05:622a:58b:b0:410:92ca:3dcd with SMTP id c11-20020a05622a058b00b0041092ca3dcdmr14702248qtb.9.1692822360546; Wed, 23 Aug 2023 13:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692822360; cv=none; d=google.com; s=arc-20160816; b=yJrj5ukx9zk8U+0jMNqPsmDLORRKZGW+ziyqJpyIv7mEpng177uWrLk5AzLaruTHDu 9EUuxErxBHej9Dw+pCIWQGYY6wgR3cFiM621eREQkBWbOLB1/8VxLwK5spRP0VjRkaxZ lFtPmYRO0qyhUUBNxcSmeOhfWYcMrYmbtqYjQLcWLjBmBGHzjUzJgfEHSwtgSPNIpcWF FKMmYvwfg2DTgHRib4Zbci+uk/rvuWaSktGI6H9dJI6Fe6vG4tCqHzx4az7NOVt7bwyb 2JARrJ9B6zKPZRrWyg12b8qLktrsYlIXp2O9rWgqfWKo3JfKt5+9z0uCbyiiQGTYG8oy 8WaA== 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=aHbWd+vL9cFJb3YCRtGzznScqvArtoWUo4TuP0it/ow=; fh=8EuKj6KCCmCbOnz2bedr9hEZc8uRmasewldbyxYtSMg=; b=zNsuDM84fDN1mNu5IEzfLurQ3Zyo7AQruGRU9pKnS0dQTDR+TFZiHC1DGHg1jVbRv5 IMDa55sqTTAbBaUtfVhrDL36Xa2sQHykO1+h4MkYpbhMJ6ZS6aBoabklOobcj7kxRC7G ZeUM0jenwDRYgy4N2zL/BYuZVUsz+BNiW9zJoi8rhPuy1rSACkdcHIBm44lRQdawTT4m z6IzF2LHyfCY9Mzm83SlLDIlQI44ju7pjs0i/oPs0xYMzumgBP1CP7fnTo8D1TKGIXTl wjN1LwtcGp/ohUbmYZVazIqGopC/cpsR1tFAcJL0OSD6doUmb/PMDHKPmGtd1JiooKJx ohGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uhn6AOAa; 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 v15-20020a05622a188f00b00403eb77c752si5053496qtc.623.2023.08.23.13.26.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Aug 2023 13:26:00 -0700 (PDT) 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=Uhn6AOAa; 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 1qYuOo-0000h7-Fm; Wed, 23 Aug 2023 16:24:18 -0400 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 1qYuOb-0008Sr-QZ for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:24:05 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYuOW-0005VH-RS for qemu-devel@nongnu.org; Wed, 23 Aug 2023 16:24:05 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1bf57366ccdso1604335ad.1 for ; Wed, 23 Aug 2023 13:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692822230; x=1693427030; 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=aHbWd+vL9cFJb3YCRtGzznScqvArtoWUo4TuP0it/ow=; b=Uhn6AOAahQATLmAqNKbQz2AmgQdYih9Z0vAqmHr5qBLbu1QO+sEFM34mjnC+5IOEp4 8p6haXTlesS1wzguIW2Oddd+IHQIdyb7Lj7rdJGRR/5t/frpi23Tnep+CxBg+l/GU87H PRMJyRJ/kJR8DLkz+kJvMoAbFYL7wL5tuBCXLVQBm/Rc4n20WrWTQm/ZUv3AOECL0Y7Y H32h2bBUJvfmDFNv0DBIEo7tcUe+A6F7SGOz7rnJPkx5RKSV9LzxOJOCrTRH/orTnLSd 3119agK/P9Y8yar9HUeKehxUaA7jC/t5DpL7OWQCBLTGKn8vSh1XxtoTtudhf3f90SJn 2ueA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692822230; x=1693427030; 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=aHbWd+vL9cFJb3YCRtGzznScqvArtoWUo4TuP0it/ow=; b=R0tg4D49kyKxaNJMyzOlmR3G/Rok1nQu0Owve2wycw8WDFRh+6Wg/5Lr5N+UCubfjp 1my1IGudKarqcAun6cLj40mfLdC9NRZBUDpb7zq4yhgbJRApywulVSW7FjvkEhg5r78L IxuZAjIc5RlfsyX4clwyahBqpRbSCRWK+kFIxi4Y6cqUeG39334s6ANQqLaqd3zNhPrN W+z4gEIqmN6oYXe7YYG/Bc/fMZXGhpifCw4YVRMz07YJEJCDIb01mmqR+jKtXpAzYhGC cLerAf03kQR0F4BZUqYRDBtffdbr542L16BSuGOl2Omz8t1+9emd+SUFS6dXrFWW74UK lS4w== X-Gm-Message-State: AOJu0Yx37TbTNbX8xzH7ugULjC/QAotwi8scLP3ZUUrLu6JeOH4Kbyed f+zvnqywf3hJNz+Ev5B97BmfeWFlfj03E6cQ8Gs= X-Received: by 2002:a17:902:e5c9:b0:1b7:ca9c:4f5c with SMTP id u9-20020a170902e5c900b001b7ca9c4f5cmr19800592plf.28.1692822229937; Wed, 23 Aug 2023 13:23:49 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:72f0:1ea7:85d2:141e]) by smtp.gmail.com with ESMTPSA id iz22-20020a170902ef9600b001b9da42cd7dsm11418641plb.279.2023.08.23.13.23.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 13:23:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Bastian Koppelmann Subject: [PULL 24/48] target/tricore: Replace gen_cond_w with tcg_gen_negsetcond_tl Date: Wed, 23 Aug 2023 13:23:02 -0700 Message-Id: <20230823202326.1353645-25-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230823202326.1353645-1-richard.henderson@linaro.org> References: <20230823202326.1353645-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x633.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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Bastian Koppelmann Signed-off-by: Richard Henderson --- target/tricore/translate.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/target/tricore/translate.c b/target/tricore/translate.c index 1947733870..6ae5ccbf72 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -2680,13 +2680,6 @@ gen_accumulating_condi(int cond, TCGv ret, TCGv r1, int32_t con, gen_accumulating_cond(cond, ret, r1, temp, op); } -/* ret = (r1 cond r2) ? 0xFFFFFFFF ? 0x00000000;*/ -static inline void gen_cond_w(TCGCond cond, TCGv ret, TCGv r1, TCGv r2) -{ - tcg_gen_setcond_tl(cond, ret, r1, r2); - tcg_gen_neg_tl(ret, ret); -} - static inline void gen_eqany_bi(TCGv ret, TCGv r1, int32_t con) { TCGv b0 = tcg_temp_new(); @@ -5692,7 +5685,8 @@ static void decode_rr_accumulator(DisasContext *ctx) gen_helper_eq_h(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2]); break; case OPC2_32_RR_EQ_W: - gen_cond_w(TCG_COND_EQ, cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2]); + tcg_gen_negsetcond_tl(TCG_COND_EQ, cpu_gpr_d[r3], + cpu_gpr_d[r1], cpu_gpr_d[r2]); break; case OPC2_32_RR_EQANY_B: gen_helper_eqany_b(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2]); @@ -5729,10 +5723,12 @@ static void decode_rr_accumulator(DisasContext *ctx) gen_helper_lt_hu(cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2]); break; case OPC2_32_RR_LT_W: - gen_cond_w(TCG_COND_LT, cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2]); + tcg_gen_negsetcond_tl(TCG_COND_LT, cpu_gpr_d[r3], + cpu_gpr_d[r1], cpu_gpr_d[r2]); break; case OPC2_32_RR_LT_WU: - gen_cond_w(TCG_COND_LTU, cpu_gpr_d[r3], cpu_gpr_d[r1], cpu_gpr_d[r2]); + tcg_gen_negsetcond_tl(TCG_COND_LTU, cpu_gpr_d[r3], + cpu_gpr_d[r1], cpu_gpr_d[r2]); break; case OPC2_32_RR_MAX: tcg_gen_movcond_tl(TCG_COND_GT, cpu_gpr_d[r3], cpu_gpr_d[r1],