From patchwork Mon Jun 14 08:37:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 459782 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp3089941jae; Mon, 14 Jun 2021 01:52:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxT/Nl3nQTQOO3um1D/6PLNoiZKWWZwsbGDvxegaNCvVf/EU+NfIgcPxqqsLZSWKJwfuE/D X-Received: by 2002:a25:770f:: with SMTP id s15mr12932833ybc.104.1623660773151; Mon, 14 Jun 2021 01:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623660773; cv=none; d=google.com; s=arc-20160816; b=pg+Drda+iKSmUdXVpDXyUHGIZaO/KJ8XnHE2r58rNiZKwDZXvv/Ty+bLzmDOYpNfUB NzgM0TAzeOwBHf9UbqkKQmbKjrYPnxGTgdlpsB3qc5Q60yjQL5+VFikaBTseilzMPHuw 3lkImy/JZJj7ArZ561+hY/99hfRLVd7oNrEMXSlHOwjmvis+VmGb0Cw5h+N1ArW2kG4E XbJeFpfX31lcOdrfogZdvhyegbGWOIRYt9egrEHLe/Q5FePYkapbu/T+qzVPHL86I8Ni 339/sO9Kh84jYLT2Zx2BRLdmP6L4IMPu02AqBqS6SFVLqv9tiAypO9N/xV5FGOqFJQfo aclQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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:to:from :dkim-signature; bh=T7BJEd3GAshXT7gnjM3Wy8Serp0Ny2cG7uiwPGDYDAQ=; b=EgQCTOBrnrH8GHuEwqreWG62cZ7hA2LU2OuE2Ha8Lbr9zmaZt4PtSvdNVyTt/yw8li RE2BsYS4kd3HnmvINi3dh36ldlEgNVbyQb4eqg3pbitbFuP8TvUlAB77Xz0emqX+lvCa tLx23zewWbZ5ydwFhNDuCrl2wNw+0QVYEUCGFiQ/Ez0MLtfni7CIUWD0GkEZ5iA3mUnt pSd2Wh7YUnAVofccMD4ZQZlrHeMoDmS1aYYJiLQZ4cEyBtljtN3n5reVHdr1k9yOcIT5 qxk0w8hBTWj05/xfTetK6zDR4QYB+P4rb0GlzMTmBYEPq3N15jWwpLX4KlVAiAGcGypT XrjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gDQUzFhV; 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 72si12510930ybf.422.2021.06.14.01.52.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jun 2021 01:52:53 -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=gDQUzFhV; 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]:50608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsiKy-0003t9-G8 for patch@linaro.org; Mon, 14 Jun 2021 04:52:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsi6z-0002bx-UE for qemu-devel@nongnu.org; Mon, 14 Jun 2021 04:38:25 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:35335) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsi6r-0003dF-8c for qemu-devel@nongnu.org; Mon, 14 Jun 2021 04:38:25 -0400 Received: by mail-pl1-x62f.google.com with SMTP id x19so6162041pln.2 for ; Mon, 14 Jun 2021 01:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=T7BJEd3GAshXT7gnjM3Wy8Serp0Ny2cG7uiwPGDYDAQ=; b=gDQUzFhVCqTkO67z878SfPpWgFohfEH9yt9rHm+bXIE07OT3Fb/LhDdlPOxx4z3eqA GiXtLUYK3r6/bDpzchEHVJ+OY+SMXfw9P5Xh0nrnpvq8uMLnz1ZKC1lTl9PCPVDSu+HA 2HU2gY+Yt9cGIo38L/ECxS8UYFQLQD9sdkCdyaWRJbLs+gMLvOyugMQ6ISNg2yIshXVd Tgmg2vOfe1TibzvH6NnN9VxI2BuH7lrCu057TAww3Qpeu8/hnJ4FtiL4s3LYFRAHAEMQ UuOlkUPRiYBYJA8zbJUrxTAIV+QvezUA0R6OZJJfW1us9+JMFj9ZA4CtViqP11DK3MeI oBaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=T7BJEd3GAshXT7gnjM3Wy8Serp0Ny2cG7uiwPGDYDAQ=; b=a82UxxKOkR+vvRG9f229uMz2U/+B747FK5svqO1OcEqRIFKU/XKzXvgHR8P6iPDxbS ZEw2iKNAKMLFDJgHBJAQ00HZOsv6vnvbotMlp/U3YrVXKd60lbulusd/nTQGs3/SpjMo vTYJOao/XDsTDMrd7rAsek6g8uInvRj2RQSPoyOsHF+tRi3ochhOOG2KteIjFuEp+fzC FyFxIIDezP8Xc2eAhbFO/bzrrLV2xAUoaMwu7AQdE/e1n9TOuhLwj5lecgaAawuXfOuE mK3DpsTEIxs7CIvH7JsU//lwuFIXOy/9CVoQDhKDsxCFhjfItSxTKbGlLZlU1yIdS3n9 8yNA== X-Gm-Message-State: AOAM532WFOPuH/TULZKuvNwUI8/bxOdgeVDFpdWBfO0cM57b82kjP1id 9bJcc50RR8kxAlS9H9a4Nu3IX1YGszgoVg== X-Received: by 2002:a17:90a:e654:: with SMTP id ep20mr17611003pjb.168.1623659895736; Mon, 14 Jun 2021 01:38:15 -0700 (PDT) Received: from localhost.localdomain (174-21-70-228.tukw.qwest.net. [174.21.70.228]) by smtp.gmail.com with ESMTPSA id h20sm2242022pfh.24.2021.06.14.01.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 01:38:15 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 24/28] target/sh4: Improve swap.b translation Date: Mon, 14 Jun 2021 01:37:56 -0700 Message-Id: <20210614083800.1166166-25-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210614083800.1166166-1-richard.henderson@linaro.org> References: <20210614083800.1166166-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yoshinori Sato Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Remove TCG_BSWAP_IZ and the preceding zero-extension. Cc: Yoshinori Sato Signed-off-by: Richard Henderson --- target/sh4/translate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Peter Maydell diff --git a/target/sh4/translate.c b/target/sh4/translate.c index 147219759b..f45515952f 100644 --- a/target/sh4/translate.c +++ b/target/sh4/translate.c @@ -676,8 +676,7 @@ static void _decode_opc(DisasContext * ctx) case 0x6008: /* swap.b Rm,Rn */ { TCGv low = tcg_temp_new(); - tcg_gen_ext16u_i32(low, REG(B7_4)); - tcg_gen_bswap16_i32(low, low, TCG_BSWAP_IZ | TCG_BSWAP_OZ); + tcg_gen_bswap16_i32(low, REG(B7_4), 0); tcg_gen_deposit_i32(REG(B11_8), REG(B7_4), low, 0, 16); tcg_temp_free(low); }