From patchwork Tue Aug 8 03:11:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 711551 Delivered-To: patch@linaro.org Received: by 2002:a05:6359:d30:b0:129:c516:61db with SMTP id gp48csp1915082rwb; Mon, 7 Aug 2023 20:13:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoDTDXKGkv6IThYUByHG/gdLjLj+LXpO2sKptPeMMo8+VVAvgsTt5QArb1Lx91e5v8njVU X-Received: by 2002:ad4:53ab:0:b0:62d:eda3:4335 with SMTP id j11-20020ad453ab000000b0062deda34335mr8839453qvv.29.1691464411125; Mon, 07 Aug 2023 20:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691464411; cv=none; d=google.com; s=arc-20160816; b=n06Y64Z3G6ioO3uJBmkmB+Nn4h0uULlD0jF3bM4toI4w8Qhl+K133dfAo2o2qBxpuR ZeNWgkNyjbYdWjNjX52lA0WPzWoNQsoDJ5Yzp6GQTjn+Ojyqx2mtuPZnVWYEwwc8sGFF 1m2o1tw6e4UEbQHDSXfEUFHkeMSDb7NdrQu3UJq/tRcxYadf/t5wK9MjZnVSRALZ9qh/ QZjyquj5zyeM8lAW3csT8/JOmu9M3K8eTE1RfAX4U0lb5tpGmLSkQQ2lQ129ZLnGmofE i7K0aBMr+NE9RyOFNnI2J2aKAaqYXO5jA6qOn4WxhtpMCgwuklsRpIWvu+0gfK6H7x8b lyqA== 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=D/1Q70p1UuDX1mGiWAQEKQh99p5UQv5WsxNgN2rwkIM=; fh=hqs26moy805PsHbwd88lUczy2QdlfF59ojSMxj/DeWg=; b=j6jtocclP7y7XN+/3X7vpBs6l7JV3PPn0VwAI03FFTHYw/c8XTTo3532AVvY33x+H0 yqGMrd3C1zE/ng9j580cYv+sqViO9iju9X4vg6CROLGs236v5TmvqHc7vkyzl1ipfYNC G4L74X5N/NvTSsn0/12GQmxNiTaFd0DrJX6nEz2Zfagbs9yoxV/Y1RHamFTOJlnNdWWV X39SMDj5HD4JXD7m9kgEeHDMuDRf+QIArUfqe4CCc1lcfOuK0PqcNygkmMX79L9cjyXL OUdvRrK5tD8CIccuyp4NKsjSUmMBQgJEjP+HIZH2f7zz/Yzs8coEblDQoY0hQhsoEjfU d8sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C0+dy6oN; 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 p14-20020a0c8c8e000000b0063f7f2d7e81si3586252qvb.350.2023.08.07.20.13.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 07 Aug 2023 20:13:31 -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=C0+dy6oN; 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 1qTD8b-0000Kw-SB; Mon, 07 Aug 2023 23:12:01 -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 1qTD8Z-0000F1-S9 for qemu-devel@nongnu.org; Mon, 07 Aug 2023 23:11:59 -0400 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qTD8R-0000AC-FG for qemu-devel@nongnu.org; Mon, 07 Aug 2023 23:11:59 -0400 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6bceaed7abbso2231339a34.0 for ; Mon, 07 Aug 2023 20:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691464310; x=1692069110; 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=D/1Q70p1UuDX1mGiWAQEKQh99p5UQv5WsxNgN2rwkIM=; b=C0+dy6oNAVmq7RvWPNsgdw2+Z+x2I0QLONAlaoObW5SCNpYIM5q/KPKgcGBOJ8sYbs xi76dGfz6fr3havnBdYJ4yno9zNAJrkVoe91XiQIdoasMM2zXX4uiU8iUSxqZSGH36Eq rxhHOtti/rEQ4c0+7W0b8xg+p66Zr8UzLSjG+2AmPyZCEINByCi3ilUCroAoBcpLS4kT aIqNccdW7kc+E6n/FmG+ezzOP4tbWPNE0Y5CxtH4uXqOtGFT+pRGsTSVGimmrtJ2JNbO jDLAgIOblHYZQFp0ifl8GL+nXtIfO9Yx6ESWAZktQtvmkoW9V1J4H9G3FWCEsfkYP3Rs pSgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691464310; x=1692069110; 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=D/1Q70p1UuDX1mGiWAQEKQh99p5UQv5WsxNgN2rwkIM=; b=PeG+90dSluUc42U4am0YnLHOp3eUehXJT5FFyqTcpwrY6rqgZlML9EYPS0Y1WSLqkR KC3BHDgwmTjCVq1NXlLatP0biZYlCvXEseILpT+rRh2L4dtUttrzq+YvXRcQnA3kIuOD EvVY6xUurUXYc5ZXXKbd2Jo0z+7ftf4puAxl29KQoG3+tKNossKuVmnN8NUPW5M3rY+Z RKsY+pt1zKNQ1d4eyBE+X98xI0xOYdzC7Fq8SDcCbu4+spQkH9PKcv7GK5HUy2NPJiMV UczV/F1xehuGjHKcSYHR+rHlvizhhZpvqZGQitwpl66NEM1vID79wEhv4f4kNesXeuy+ V9ZQ== X-Gm-Message-State: AOJu0YwTWQCuQjg3ZKwlIpZSlFyo6S+jBs275gi6h2jq3Jh7AEdtmVTo 3uXLJ2RNLr1k+eTf3QDAc/eBaxId3w/7vyNYThk= X-Received: by 2002:a05:6358:9209:b0:135:51a5:4da0 with SMTP id d9-20020a056358920900b0013551a54da0mr14195172rwb.1.1691464309985; Mon, 07 Aug 2023 20:11:49 -0700 (PDT) Received: from stoup.. ([2602:47:d490:6901:e306:567a:e0a1:341]) by smtp.gmail.com with ESMTPSA id g64-20020a636b43000000b0055bf96b11d9sm5639087pgc.89.2023.08.07.20.11.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 20:11:49 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org Subject: [PATCH 06/24] target/openrisc: Use tcg_gen_negsetcond_* Date: Mon, 7 Aug 2023 20:11:25 -0700 Message-Id: <20230808031143.50925-7-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808031143.50925-1-richard.henderson@linaro.org> References: <20230808031143.50925-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=richard.henderson@linaro.org; helo=mail-ot1-x330.google.com X-Spam_score_int: 4 X-Spam_score: 0.4 X-Spam_bar: / X-Spam_report: (0.4 / 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, SUSPICIOUS_RECIPS=2.51 autolearn=no 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 Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- target/openrisc/translate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index a86360d4f5..7c6f80daf1 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -253,9 +253,8 @@ static void gen_mul(DisasContext *dc, TCGv dest, TCGv srca, TCGv srcb) tcg_gen_muls2_tl(dest, cpu_sr_ov, srca, srcb); tcg_gen_sari_tl(t0, dest, TARGET_LONG_BITS - 1); - tcg_gen_setcond_tl(TCG_COND_NE, cpu_sr_ov, cpu_sr_ov, t0); + tcg_gen_negsetcond_tl(TCG_COND_NE, cpu_sr_ov, cpu_sr_ov, t0); - tcg_gen_neg_tl(cpu_sr_ov, cpu_sr_ov); gen_ove_ov(dc); } @@ -309,9 +308,8 @@ static void gen_muld(DisasContext *dc, TCGv srca, TCGv srcb) tcg_gen_muls2_i64(cpu_mac, high, t1, t2); tcg_gen_sari_i64(t1, cpu_mac, 63); - tcg_gen_setcond_i64(TCG_COND_NE, t1, t1, high); + tcg_gen_negsetcond_i64(TCG_COND_NE, t1, t1, high); tcg_gen_trunc_i64_tl(cpu_sr_ov, t1); - tcg_gen_neg_tl(cpu_sr_ov, cpu_sr_ov); gen_ove_ov(dc); }