Message ID | 20240204214052.5639-14-richard.henderson@linaro.org |
---|---|
State | Accepted |
Commit | 50280618d9ae434564a2e321cfb5b248309bed70 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:9bca:0:b0:33a:e5bd:fedd with SMTP id e10csp1842338wrc; Sun, 4 Feb 2024 13:43:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzLMx+/EG/85y0Z6dM6/kk4I92YYRCZY2AZsZp2PVQpwL5qxREoremoqV4xSMNpATPG5Jl X-Received: by 2002:ac8:714d:0:b0:42c:b29:ad6a with SMTP id h13-20020ac8714d000000b0042c0b29ad6amr6788636qtp.31.1707083004186; Sun, 04 Feb 2024 13:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707083004; cv=none; d=google.com; s=arc-20160816; b=Kqsjmmm5BtTuJQt4aLvAt7TSIAE3xH+eg2txikEVJUQ6BG2SBRQiOIIqvjVmQ3pLPJ 4TW8KaMmEOp+pcN40HWHnHFesZM58wJJyHGpG5wdjNFo+nImshZp4AIbeZ12Ux1XsKLN HkLR+/hyfzAVij1IVqzkHJHsko3O0K5xlEzzFXT9GH2scSBGeQB5QaAqDCULvOK4979h IE0EaQdO/bKg9tekpK5Fbhq1Q+bbiMXElqsbHoKyjRlLWBdVKicya6p0NzUX1vV7HoOf CLcUiFGTY4/bx0dXfRzL8oOfXdufEgekhIGGldspBL5IC5k6r0uR0perIEOVDzk18XXe 5iew== 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=Mppe2/7nayBXlypsR6xMk/9OKA8uIp/hf0zJVbJSgnk=; fh=3HffvhHX9LmrVu6o+B8R4VZbQl0v9bqbe5e9GAYJ6/Y=; b=ACZBu22FvGXRktNdpSo+cPe/R/YK3/SG3yjTcMrPG/ibywlWpbz6GgsF/Tl+90QmnP qFDvIHT/ci3mxr+44DWgb+j3eNoMe5ZJoTlQ/V0m0mTvbgQ05ZCpjGGC4DHk39grTyD8 lzOGldb0Ud1+NVtMQANFFmmPPso3UYavTHoYu2zT1RvVRi4BE+/OOW8EaYNNdAIJLXT4 5WUcQWgLnCHVhH1rjCJYcF4jrSh+M6Km9wRm3tuSO6y65Wt9d8SBVnmqrc0F1DuRSJrF lqnrN0MMVlkdJALRtL7EDyJZXBb3Tt4Jx8sncfJtKDrFJRYlV7oyzhLhwYJl3u9K2+Rw F0ug==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QrBqKVJu; 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 X-Forwarded-Encrypted: i=0; AJvYcCWehyTBY9TTlNjiBTnPpuV9BaLYw5NJTWKWoJM9hWV+9VYfOncMWikp6UAMglVyLYjoP0Zv//s03rlqHtCcYQer Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f8-20020a05622a104800b0042a8967cdb6si7339195qte.533.2024.02.04.13.43.24 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Feb 2024 13:43:24 -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=QrBqKVJu; 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 <qemu-devel-bounces@nongnu.org>) id 1rWkEy-000277-6r; Sun, 04 Feb 2024 16:41:28 -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 <richard.henderson@linaro.org>) id 1rWkEw-000267-C4 for qemu-devel@nongnu.org; Sun, 04 Feb 2024 16:41:26 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1rWkEu-0003Wk-Ri for qemu-devel@nongnu.org; Sun, 04 Feb 2024 16:41:26 -0500 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1d958e0d73dso19351635ad.1 for <qemu-devel@nongnu.org>; Sun, 04 Feb 2024 13:41:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707082883; x=1707687683; darn=nongnu.org; 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=Mppe2/7nayBXlypsR6xMk/9OKA8uIp/hf0zJVbJSgnk=; b=QrBqKVJuFlBzRqgz/UF3XyZ7jYEH7N9K3r3pzZL1/iR/ffTvACmJi7y9PgFqbo5y9J hnwCQioDmql1P6hx10a4fT55wp4FRf/yht8PvP9ECYAzvCE+tj7eO+0Hzpe8OlVnk1is Bx3A/HUFSlPme8y23Ih8SqXwR2ATOwD92Bj0xrn3DDCPeavDSYRytsZPFcCwrA7EcHlO qHkVamgrpWz60ec3eBG5GEtAsj48xfVjSg/RONAD4f7vy0mAmOJX9LDe7Xf0cksaN0v0 R25wDcIfjNz2ZRZ4OLhCA5gnzZ5qbOdSLeggjBn2d1X1apcieXuHWwYnRxY8gicdVBv4 BKow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707082883; x=1707687683; 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=Mppe2/7nayBXlypsR6xMk/9OKA8uIp/hf0zJVbJSgnk=; b=tp1hJI8//TvrtBwwSs+bU6Tp3zVpJIZKrpnBoIlbYlz/dyAasvLV6ax69F3re7mLuU W8AK5Q5xXJm53o7NilGXDwAZXZXhHqHCWNuj1NtrrlKs03FGsB9rYm7AuMMF4ULTZQst KjKaHBgZvcOwKDhurX9dNr3LNKyYPeSNe9YAn+ddYKs+ypDGpfe8Ou1E2pnigyiE8uj0 34+2l17bULHW2AiaHPnIfY/kc9U+YjTgtnB9ro6JSfmTMLxB48HWa0qIo9PmuQa1K/M3 DrE6fat52SxLepVRIjQ5MZana2PixO2j8dKrm+nZoDcmA9Er4wg3HrVzlEAQYviZHqPb ipaA== X-Gm-Message-State: AOJu0YwM8OvvhyzR5Dkg3FONzgPYSNdmvPL/TKIm7yvlWRcE3JP3Xu6A pryNPo0aOt4K0JtVjl3hQ5RKsDs+1cMs3SGFi536ZWL6xbnMbHOY6ZfXwr63c4RSfJvielQTaJy c2gE= X-Received: by 2002:a17:902:e752:b0:1d7:57e1:5202 with SMTP id p18-20020a170902e75200b001d757e15202mr6877929plf.20.1707082883626; Sun, 04 Feb 2024 13:41:23 -0800 (PST) Received: from stoup.. ([43.252.112.156]) by smtp.gmail.com with ESMTPSA id mf11-20020a170902fc8b00b001d8f5560503sm4953670plb.222.2024.02.04.13.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 13:41:23 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> Subject: [PULL 13/39] target/sparc: Use TCG_COND_TSTEQ in gen_op_mulscc Date: Mon, 5 Feb 2024 07:40:26 +1000 Message-Id: <20240204214052.5639-14-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240204214052.5639-1-richard.henderson@linaro.org> References: <20240204214052.5639-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.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, T_SCC_BODY_TEXT_LINE=-0.01 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/39] tcg: Introduce TCG_COND_TST{EQ,NE}
|
expand
|
diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 7df6f83b13..d9304a5bc4 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -488,6 +488,7 @@ static void gen_op_subccc(TCGv dst, TCGv src1, TCGv src2) static void gen_op_mulscc(TCGv dst, TCGv src1, TCGv src2) { TCGv zero = tcg_constant_tl(0); + TCGv one = tcg_constant_tl(1); TCGv t_src1 = tcg_temp_new(); TCGv t_src2 = tcg_temp_new(); TCGv t0 = tcg_temp_new(); @@ -499,8 +500,7 @@ static void gen_op_mulscc(TCGv dst, TCGv src1, TCGv src2) * if (!(env->y & 1)) * src2 = 0; */ - tcg_gen_andi_tl(t0, cpu_y, 0x1); - tcg_gen_movcond_tl(TCG_COND_EQ, t_src2, t0, zero, zero, t_src2); + tcg_gen_movcond_tl(TCG_COND_TSTEQ, t_src2, cpu_y, one, zero, t_src2); /* * b2 = src1 & 1;