From patchwork Tue Aug 22 12:40:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 715748 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp235683wrp; Tue, 22 Aug 2023 05:42:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFT3FOQ8gmr5zZMruSBpUBTTv8T16Oi+auQtaFsIMPWvuRxtuOZajrr1rOzz+TqKQskqZc X-Received: by 2002:a67:f70b:0:b0:44d:4385:1627 with SMTP id m11-20020a67f70b000000b0044d43851627mr5895731vso.14.1692708161073; Tue, 22 Aug 2023 05:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692708161; cv=none; d=google.com; s=arc-20160816; b=tTCFcJL7aT3cGXOprTEjrkucE1Bj7umNtYFwAAKCr4fhxECYgH1EOfym3eUOSahQMT 1SWUPQu1cLnenPubpPODMODBJoA2kqwIGaF87GZcKviH4E+kvurNzeZyWOC1hF2vEHEP rlH3gMZ8k5qTtdpjD14tmPocvSn/yJROiyjY8Ia6+W/xwMLFRiCU2yD/LzCMwh2/H9GN 2xXfw7ee1JZx9lwiFKnufm4v71UT+aoblfQwRnev2itDIKYgt3vdzNBH1LAyI6F7m0Ns ETGOstrRyxDhfygWag5BGSYSp+tfxFBUq3I+RBEMlu1vULiy5jUToJi1WLdmvRc9azQY CzYw== 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=9tgWMGPDbie9fGcPGgyVFDHFkfBvE8l4uEI9SosXl90=; fh=wXqw6aajGBSP4OKAgbWKHj3BSg7Yrdz+j0I8chPJZNc=; b=B3/SS46i8G0C5MonuctOyNbWqY+qh1HsdYHEX/TIHoA1N6EFfqlIEuq7QSvQhKDSw4 i8TmGlNQTWNDYU6KH/xLpI2SqpN9LIR6ILbFHWFisjl9GEhkfev7FPjmSZpG2f6iIYLc XT57P5vWwe1xQ8g9aBXyxHt/6ozwKqW672XcGvl4BAC27EoDgjqCxF1fWNTNcaxvdfnZ H+5s6qf8GHZAOF3JbQScbpQvYTIl11zqWJ6x/XSt3AtEa9KhuKbPubqpwgMHn9nF8n7Y uLGP4ma6nrsvrE9xvxCvnIT5tqmJj+lWdL1Q6kW9zLpvC9ijEnM+yVsY9cBv6y7++ZsX BMFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J2KXBdxW; 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 fi4-20020a0562141a4400b0063d57c2050asi6371495qvb.46.2023.08.22.05.42.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Aug 2023 05:42:41 -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=J2KXBdxW; 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 1qYQhM-0006S9-LS; Tue, 22 Aug 2023 08:41:28 -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 1qYQhK-0006Qf-F5 for qemu-devel@nongnu.org; Tue, 22 Aug 2023 08:41:26 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYQhG-0005ht-47 for qemu-devel@nongnu.org; Tue, 22 Aug 2023 08:41:25 -0400 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-5007616b756so4017058e87.3 for ; Tue, 22 Aug 2023 05:41:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692708080; x=1693312880; 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=9tgWMGPDbie9fGcPGgyVFDHFkfBvE8l4uEI9SosXl90=; b=J2KXBdxWDWdANzQcdikqJUwhVtE7/Nllc+n7/YFoh3p0JuFSWJQopQndpCNIwd1VoQ CI/ijojr4tMS8Q3f966G9CFxyR5PJ8nApvFVWpmf0c2LE2FYcTZDaC0h5HAlj/ti0b3L SH5oHa1fXTjiwpGjI/u0aTVSR7z5hi3SPLtdRIxtUBL468SEU9xtBL7yJadl8JHy5FI7 nHMSMGePSDsAoNbZNEE6GUZ7vUlGI0NCI1yAN9Q5ZL47THjZ7DZVPDmKc7tGxl0qNuL3 9kzSzVy8w56R6irL44cQsgJoV26s7viCHY9YLks8OZFwHPLn1Wj+0lHYOtFCQZwkwcdT 5kPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692708080; x=1693312880; 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=9tgWMGPDbie9fGcPGgyVFDHFkfBvE8l4uEI9SosXl90=; b=HjmJJlbpIOUlmhd6vs2DET0lE99K4wWwT/SxuR8eQ+cK5CW9hrqvgUZGSY00oNWMHZ 9JleykE/7LudxnSusMjCS+uW4ud99O2fx9vJyBahLDFhVzXe9x496ha5VTJuAAv3yVp+ UAjpJHQBUHqJ+kRzFy52AFEwYSd3nwNTBSp5nK/dDqmf44AZPfbXBsZWIjRR8bD0mAd+ 4Bb+AeNvH+A8pZpj1KAd+gZnPP1Ayy3nsnF7JWaAT/j3s9qH3hUXiRiHjszyyTTgPXkJ F+YZcgwPaUOUkJOvKZjOd9/IRBRPW0ejEgEpixezPSg37ROS5kvaMyB7tmi5JnT2FYJe fEnw== X-Gm-Message-State: AOJu0YyQypuDljFvcSlzbPIRrR/ZDazWt6Q4E8cgIeXzOI7O+pPevYu2 bGTobmaxlwJvKjB1ZVm8aRpPqSyLuuD7FqcKpvk5DA== X-Received: by 2002:ac2:4db9:0:b0:500:8723:e457 with SMTP id h25-20020ac24db9000000b005008723e457mr2168739lfe.30.1692708079891; Tue, 22 Aug 2023 05:41:19 -0700 (PDT) Received: from localhost.localdomain ([37.19.214.4]) by smtp.gmail.com with ESMTPSA id u24-20020a05600c00d800b003fbe791a0e8sm15956575wmm.0.2023.08.22.05.41.17 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 22 Aug 2023 05:41:19 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Song Gao , "Edgar E. Iglesias" , Richard Henderson , Greg Kurz , Aurelien Jarno , Peter Maydell , qemu-ppc@nongnu.org, Daniel Henrique Barboza , Aleksandar Rikalo , Paolo Bonzini , David Gibson , Jiaxun Yang , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Yoshinori Sato , Nicholas Piggin , Xiaojuan Yang , qemu-arm@nongnu.org Subject: [PATCH 04/12] target/rx: Use generic hrev32_i32() in REVW opcode Date: Tue, 22 Aug 2023 14:40:34 +0200 Message-ID: <20230822124042.54739-5-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230822124042.54739-1-philmd@linaro.org> References: <20230822124042.54739-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=philmd@linaro.org; helo=mail-lf1-x132.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=unavailable 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: Philippe Mathieu-Daudé --- target/rx/translate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/target/rx/translate.c b/target/rx/translate.c index f552a0319a..75590ae05e 100644 --- a/target/rx/translate.c +++ b/target/rx/translate.c @@ -1513,13 +1513,7 @@ static bool trans_REVL(DisasContext *ctx, arg_REVL *a) /* revw rs, rd */ static bool trans_REVW(DisasContext *ctx, arg_REVW *a) { - TCGv tmp; - tmp = tcg_temp_new(); - tcg_gen_andi_i32(tmp, cpu_regs[a->rs], 0x00ff00ff); - tcg_gen_shli_i32(tmp, tmp, 8); - tcg_gen_shri_i32(cpu_regs[a->rd], cpu_regs[a->rs], 8); - tcg_gen_andi_i32(cpu_regs[a->rd], cpu_regs[a->rd], 0x00ff00ff); - tcg_gen_or_i32(cpu_regs[a->rd], cpu_regs[a->rd], tmp); + tcg_gen_hrev32_i32(cpu_regs[a->rd], cpu_regs[a->rs]); return true; }