From patchwork Mon Aug 22 22:37:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 599197 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp2008695mae; Mon, 22 Aug 2022 15:40:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Q2e+0eMNbNjBPokE9bmBHljA/d7hMtIPBXE7sPlTqsPAqdTW9lBjwPYPNEN0zvhx0K1j3 X-Received: by 2002:a05:622a:1703:b0:344:6780:8664 with SMTP id h3-20020a05622a170300b0034467808664mr17385754qtk.69.1661208007238; Mon, 22 Aug 2022 15:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661208007; cv=none; d=google.com; s=arc-20160816; b=YgkXmZbXxygdJSla9xfIQ0nKRI9CZ0WdNjjEx6XhdKm9PSVm6qJnJ9lstTucK6EdHt N3Sg7LbhclshlfyTZFPe6BS+cTofOSukmXh8NRqRnBslkIDn5p9oNmiN2PrBbmyfMutX aP1mhD6A83zQ1pSN+giEgJ51bmrNt0fzjXnQKuE0d6HsbjJ+Al5A+2w8a8F0UgkEzWzp yUecYYnMdgykjx12gQ+nErjnOQ6PV+SoSyGRw/MiUg+MnM6V0UP0R3159vyZcj/XQXA7 367FIOyJ26iXAc16czxB0k4SvW5BjItaYdFegEgHHJYXV5fWkD9Qij9QQMbuo/I8hANf 368A== 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:message-id:date:subject:to:from:dkim-signature; bh=pRdOUvc4PkTYWG+B+JoKyNLMxkED6Gdco0gUACOfXsE=; b=o9bTwOCe0g+cTN//aSaCfP/RFHd6mJ/1OiTRECxRuoZnVShaMWD4RkuhvvK2c/RAtB IlrALkRrW+eJibRtz74ntkBj2Z8DEOYsYR9ej7Jde/AuqdJWoOVQwZEOj4sXtt2e5/KE tM+qBNUM7ee+BE8C3tEz+1p7aHD3N1SHOKKojHKPS88JJMSysrWV2hK29mrD5iUQ6p6q N726EldojFKESvbMkNDa3EthQHw2Qm2JY1NWpEyw7PYnKMb5Zh8i/Hm94zGu+dcqxOk+ BJ/m2rIlyPNNDYIA2rd1oJDsoe52EsDnXYcJnMAqDCyFDAsy9Sk3looFHqI5tWFsA4D4 LGRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YZFLz+Ay; 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 d11-20020a0cb2cb000000b0047046a2a3f7si4751654qvf.358.2022.08.22.15.40.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Aug 2022 15:40:07 -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=YZFLz+Ay; 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]:33210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQG5U-000356-E9 for patch@linaro.org; Mon, 22 Aug 2022 18:40:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQG31-00030r-61 for qemu-devel@nongnu.org; Mon, 22 Aug 2022 18:37:31 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:42703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQG2y-0006Xq-Ic for qemu-devel@nongnu.org; Mon, 22 Aug 2022 18:37:29 -0400 Received: by mail-pl1-x636.google.com with SMTP id v23so5931298plo.9 for ; Mon, 22 Aug 2022 15:37:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc; bh=pRdOUvc4PkTYWG+B+JoKyNLMxkED6Gdco0gUACOfXsE=; b=YZFLz+Ayghq1hvxRF3SuASN6hjdrUbuv5k1IwnHiwi6ggZOLFa7qojDQEyclv8gba+ PcTpDqDyFuMllXouOvhECVe3/pEzVD5ABXuXEJETLgxoOngXD+KxzkN9X3AM1Pd9rqbD yk/CO3BZ8G+CB+57Z8BZmsRYZ24wY/nq1IggvVoflRVajaPMU/LSygakvP72Z886OJlc qmtTdZ08cpLdWKtfVRyGXpl9qho4acXXXBfAb64Xa1ceGpHrUMRDR0lE+LfSrwzIqSsb y6x0fXvW/16tkfxpwDcmoIylTjBawkaf+ytLJRo4DsxEvesARy3p/44iCs/EjCztgCI0 6J6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc; bh=pRdOUvc4PkTYWG+B+JoKyNLMxkED6Gdco0gUACOfXsE=; b=eyEOyB4yCMcWqMRln0hWAO5pKus5UeUmBK9nOi9l0eaeGpbalhV7sDUIcCoVUa9w7U Guk30uB85nbTdi0MuqiKt3ASTUXgCOOXp1k+nIvIq7UbpsF98VOZ4pec1LvD9LHOhCyt fTydx+XoQPFv+zugbrbeYPsqTmC/SH0xKjfkHbbQUtJkueVBGWUDQ7tkg83fDMWBqfFf gkidiJGbOuZAAfjgJIuXh/5SneydQBxYPgfyOKRy1DiclZQ6dSXJuMsRVGjd4HXM0IZC pJ/JNl/03Wdt6pLCPEQTlfiZH1tI7i+oIlJYHgleutWCGxVvxDBN2+sl/XgleGJlDg0P Qh7A== X-Gm-Message-State: ACgBeo0YDReabTffVYxqdw6hpOPfC4QrcjmbBiOw1bk16pMddQR8pmgS 47v+/KvVSRBOb+r+ph3zvl+o5QXWCrNsnw== X-Received: by 2002:a17:902:ced0:b0:172:e189:f709 with SMTP id d16-20020a170902ced000b00172e189f709mr8728203plg.63.1661207845010; Mon, 22 Aug 2022 15:37:25 -0700 (PDT) Received: from stoup.. ([71.212.157.236]) by smtp.gmail.com with ESMTPSA id z6-20020a63e106000000b0042a2777550dsm7017419pgh.47.2022.08.22.15.37.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 15:37:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/6] target/i386: Host vector ops for high-usage SSE Date: Mon, 22 Aug 2022 15:37:16 -0700 Message-Id: <20220822223722.1697758-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" These 5 sets of conversions take care of all of the entries that show up above 0.1% in a normal linux boot, i.e. easy libc usage. r~ Richard Henderson (6): target/i386: Define XMMReg and access macros target/i386: Use tcg gvec for gen_op_movo target/i386: Use tcg gvec for pcmp{eq,gt}* target/i386: Use tcg gvec for p{add,sub}* target/i386: Use tcg gvec for pand, pandn, por, pxor target/i386: Use tcg gvec ops for pmovmskb target/i386/cpu.h | 57 +++++++--- target/i386/ops_sse.h | 49 --------- target/i386/ops_sse_header.h | 24 ---- target/i386/tcg/translate.c | 208 ++++++++++++++++++++++++++++------- 4 files changed, 214 insertions(+), 124 deletions(-)