From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4FE6C433DB for ; Mon, 15 Feb 2021 20:47:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1946364DEC for ; Mon, 15 Feb 2021 20:47:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1946364DEC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:54920 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBkm9-0004sY-2g for qemu-devel@archiver.kernel.org; Mon, 15 Feb 2021 15:47:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBkki-0004Nf-Jn for qemu-devel@nongnu.org; Mon, 15 Feb 2021 15:45:52 -0500 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:36020) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBkkh-0006uC-5H for qemu-devel@nongnu.org; Mon, 15 Feb 2021 15:45:52 -0500 Received: by mail-pg1-x52d.google.com with SMTP id t26so4898552pgv.3 for ; Mon, 15 Feb 2021 12:45:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dirmK9AFdO3CDsEyFHxvoJ11C9iaAOoiQtEdGkiSGH4=; b=DgA4zIyhY+7UqXbE/04EvrM7mLvQr3lkQ6fv/CmdgcWeSlBvvTGbcO9Rua+tS6RvVl 5CE0na1mH/GdHIAuoaeVaFt7S062LF2KirsCFtcd/vFHOdKAW7Obl3IyavYgCt9sZZMp BuKKH/eZvYuixNhu5DtzR0GXfdR4E4L+WdinmWlirWjaxxc5efwn3ukWoMrlUupfwfkh MlysvVGu1sotYuS4MwFWsImD58GNk1M7kzju7ohy7Xjo9EzH2RgzBWdmBJY5YY4gXhww qD6RwUjV4Ks6SCfGkTM08xgizEEEjIQEEafepcp0MgBeV+2CdE/DLOzE1EZQBduLD0P+ 98Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dirmK9AFdO3CDsEyFHxvoJ11C9iaAOoiQtEdGkiSGH4=; b=lhL8xR4cRg/3akY7bZzBCaioowUCJhQbyPn+W98qeoV5lQDFsBGf8zB1m1rlxP/Ioy mPbtA+inLACMGJPtIMKw0SDkTNNEUYxC907Cck9LvoAshQIguhfFvSuTgGCsS/JLlnGO 0UTa4amzs2egJhJL/D8cuAH8rvd2Y9Xix3226D4la2aplmOIbsR6VEc77aPZCoox4GGG cUU42FUvkl9p/7LD+nDp4A2vehoOXogRqWnqVecKa8sQPHNFRbnykA+S1tFS8bpQZ2CC ESpkBJxk1IQBkr37GVB0mNOWQLFB6L54oxzXEHMZOb1InYz1VUnlbvBHhHVqZIhjp8zg MU/Q== X-Gm-Message-State: AOAM530/0v9mcmaoNrHSEO3t0KSbWemQxg8/sgaXPU5T2dKmlEnexuIt XLwQSy35ZL+YCt1U1p5fqUDs2w== X-Google-Smtp-Source: ABdhPJyv46yJ9msXvipVp2fpWY5jnv75u9YpoIaXLlGqlUAqO191H/mL6y20873AbDwqeElkjKcRlA== X-Received: by 2002:a63:e0c:: with SMTP id d12mr16586865pgl.67.1613421949605; Mon, 15 Feb 2021 12:45:49 -0800 (PST) Received: from [192.168.1.11] (174-21-84-25.tukw.qwest.net. [174.21.84.25]) by smtp.gmail.com with ESMTPSA id o124sm20109305pfg.108.2021.02.15.12.45.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Feb 2021 12:45:49 -0800 (PST) Subject: Re: [RFC PATCH 23/42] target/mips/tx79: Introduce PEXE[HW] opcodes (Parallel Exchange Even) To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org References: <20210214175912.732946-1-f4bug@amsat.org> <20210214175912.732946-24-f4bug@amsat.org> From: Richard Henderson Message-ID: <1a8434e7-9996-f34a-1f7a-4bcebb672fee@linaro.org> Date: Mon, 15 Feb 2021 12:45:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210214175912.732946-24-f4bug@amsat.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52d.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, NICE_REPLY_A=-0.001, 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: Thomas Huth , Aleksandar Rikalo , Fredrik Noring , Laurent Vivier , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Aurelien Jarno , "Maciej W. Rozycki" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 2/14/21 9:58 AM, Philippe Mathieu-Daudé wrote: > + tcg_gen_mov_i64(ax, cpu_gpr[a->rt]); > + if (a->rd != a->rt) { > + tcg_gen_mov_i64(cpu_gpr[a->rd], cpu_gpr[a->rt]); > + } > + tcg_gen_deposit_i64(cpu_gpr[a->rd], cpu_gpr[a->rd], ax, 32, 16); > + tcg_gen_shri_i64(ax, ax, 32); > + tcg_gen_deposit_i64(cpu_gpr[a->rd], cpu_gpr[a->rd], ax, 0, 16); mask = tcg_constant_i64(0x0000ffff0000ffffull); tcg_gen_rotli_i64(x, t, 32); tcg_gen_and_i64(d, t, mask); tcg_gen_and_i64(x, x, mask); tcg_gen_or_i64(d, d, x); r~