From patchwork Sun May 19 04:15:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 164470 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4084842ili; Sat, 18 May 2019 21:34:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOetXrC9CuSyDOSlVC0Zu/P3BetAjrVSSdjROWNr653rqjly3Vpu8eHsMxdZiVyrdS0hGf X-Received: by 2002:a17:906:4995:: with SMTP id p21mr24879023eju.140.1558240441171; Sat, 18 May 2019 21:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558240441; cv=none; d=google.com; s=arc-20160816; b=nlKsl8krOEzW5RGdJgiSRldjh1tw/Ca/oEXVPo//nf9Ab4RXbfj1PCsbQqnt0qaXlZ UtfECuY9wgwXGQBQTJ4IJ3J+ND5Mc8zuQtMkPvQlRv5jlCz0QyjokT+XA+r1Aoz2h6fe jrA+h+GbOU8BY/bcvhVqy11tAa9etj0j61htO2KPA4xIcT4x+YJwdQVcxHtyzaewgd7y wh+D8ZWeqWDwro8Nov1mlBPZD0JbNazjWEt63L2WHES/1fgYWWfBFtAv4m/Gq0ChPKCR J8tI598apkxoXMC8mBhrxfLdFloJGoGW32RqLwxy72OyDXvtX7h8wxGNYg3tDZnu48RA l4ew== 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:subject:message-id:date:to:from :dkim-signature; bh=FCuqvIszZI+r7CR4RRqeHvoo3hi2127akJ+HFoM3s18=; b=tIqMoDXzdhkP62WsDraRnH9e01asVqdQ2IyLlXkLlnih3TmeQvY8fDHZS67sRa3Yzi jdTCXBAR2cFTIyE9Hhphz64DajFo5syDNkxgNAWBGEmjOmb2yB3iYnZwCt8F01fBQSRx xTWEe6lCuq3Bel17tt2htmr3il61a5dfuYt+SUMHd2q+BfWelZjHlnHxuN84WdkmHcWM XEApqC35gyN+rkjaaA1oLjqGauYmk0OekTlvmB7LOXTMsuDTuvtlmUoEaZqTWVqqucdA u0p5gt69ypcMvkTxgW3GGJgQJl6zphHPqSi0lR3m4VnEgw4ckT3pQfPIbpuoLLORoNnk iunA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=lanBDb4A; 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=fail (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 g20si1931653ejs.315.2019.05.18.21.34.00 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 18 May 2019 21:34:01 -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=fail header.i=@linaro.org header.s=google header.b=lanBDb4A; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:43704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSDWK-0000DH-4g for patch@linaro.org; Sun, 19 May 2019 00:34:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSDSq-0005xg-3d for qemu-devel@nongnu.org; Sun, 19 May 2019 00:30:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSDEN-0004kN-QH for qemu-devel@nongnu.org; Sun, 19 May 2019 00:15:32 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:46152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSDEN-0004jY-J8 for qemu-devel@nongnu.org; Sun, 19 May 2019 00:15:27 -0400 Received: by mail-pl1-x633.google.com with SMTP id r18so5134392pls.13 for ; Sat, 18 May 2019 21:15:27 -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; bh=FCuqvIszZI+r7CR4RRqeHvoo3hi2127akJ+HFoM3s18=; b=lanBDb4Ao38xJKYI9BVPs8tDPLSjjMWggp9C1soZ+aYYNbT8vqe7aVcXq9x3XaF9St HnRgSxMrMkRJmf8G2csetBy+fbzVFSioVOHxX71X77NcXLmSAfn43yETdzo+puWYGqKW pfd+uqA6W3G8ArO0MqMvO1buOM6d3wFfowAaP1M1LKD/DWg4X7bNPniV72XKsQNZPvcl 8jEGF//GMeUOLrMKpzMWj7GESdjnoMLlov0AjW4aDJZKfe4Ws9+6DxZTlqNjwC55VTM1 d8acSEh5ytmKQGtlyi0p0cZkb4jiWZdNwDej6CV7ELqTFF4v7dX2/todV36ow5/k0SnZ MY7A== 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; bh=FCuqvIszZI+r7CR4RRqeHvoo3hi2127akJ+HFoM3s18=; b=uO7PWF65bEbmFKpHQQqnZnwn/8BqP8dqRY6JTEAbdb6P52w1Y9e3ZoJSoC+JeVJCNY DyY/FKbuL268X/Ks4LnmjVbUevLT22EZZXJR/8OeECJ9DY8hsdgeMu1sES4KAyrNK5fU 7ts8TDeH+higY2IGYd1DhuYnNACCNZOzUt1fnNNwPrcQCo+YObjix40ZFisIbYtrRYez gV7jJdznhMFSewGYIAQBIbJ6Fv2GRu31e/WO4h/0Og5p7MsaiNnxDXbo0Tku0Xsn/I5S 7pb8RFp4olZbBm9dkF4YcYQ15c+vRNxHuRz3Dn9AIinSiiTXtUZGArgiVmEEAjGLA6bD 4opg== X-Gm-Message-State: APjAAAV8Dqldl9nCDOCoeOfgyE2sEUYoYfN8OuF6NRmrl65FDQoOlm3q I1c8LbvdaIgxgt9IEBoa3iqLEHmGXOM= X-Received: by 2002:a17:902:2907:: with SMTP id g7mr43367405plb.114.1558239324932; Sat, 18 May 2019 21:15:24 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id k63sm19381200pfb.108.2019.05.18.21.15.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 May 2019 21:15:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sat, 18 May 2019 21:15:15 -0700 Message-Id: <20190519041522.12327-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::633 Subject: [Qemu-devel] [PATCH v4 0/7] tcg/ppc: Add vector opcodes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.cave-ayland@ilande.co.uk Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Based-on: <20190518190157.21255-1-richard.henderson@linaro.org> Aka "tcg: misc gvec improvements". Version 3 was last posted in March, https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg05859.html Changes since v3: * Add support for bitsel, with the vsx xxsel insn. * Rely on the new relocation overflow handling, so we don't require 3 insns for a vector load. Changes since v2: * Several generic tcg patches to improve dup vs dupi vs dupm. In particular, if a global temp (like guest r10) is not in a host register, we should duplicate from memory instead of loading to an integer register, spilling to stack, loading to a vector register, and then duplicating. * I have more confidence that 32-bit ppc host should work this time around. No testing on that front yet, but I've unified some code sequences with 64-bit ppc host. * Base altivec now supports V128 only. Moved V64 support to Power7 (v2.06), which has 64-bit load/store. * Dropped support for 64-bit vector multiply using Power8. The expansion was too large compared to using integer regs. r~ Richard Henderson (7): tcg/ppc: Initial backend support for Altivec tcg/ppc: Support vector shift by immediate tcg/ppc: Support vector multiply tcg/ppc: Support vector dup2 tcg/ppc: Update vector support to v2.06 tcg/ppc: Update vector support to v2.07 tcg/ppc: Update vector support to v3.00 tcg/ppc/tcg-target.h | 39 +- tcg/ppc/tcg-target.opc.h | 11 + tcg/ppc/tcg-target.inc.c | 1077 +++++++++++++++++++++++++++++++++++--- 3 files changed, 1063 insertions(+), 64 deletions(-) create mode 100644 tcg/ppc/tcg-target.opc.h -- 2.17.1