From patchwork Sat Sep 16 02:34:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 112770 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1291060qgf; Fri, 15 Sep 2017 19:36:39 -0700 (PDT) X-Received: by 10.200.8.41 with SMTP id u38mr38435930qth.339.1505529399668; Fri, 15 Sep 2017 19:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505529399; cv=none; d=google.com; s=arc-20160816; b=w/IEMdoGe8+WmMdwA493SeH3IxkUMYqTutSZvvB3RMUekPIn/Uy6/NsMAjz7xxXmQj A/jitonAspVl0NPrVmxSBlrrJBOrqe0flQyoQfD+eEI9bBCZrK868MAmwqlJEMbdcWT3 w3VMtQhvRDw08Xfu5Y/LWB05Sd+qvKSRwni6z+suJcEH0M1CKAHHSGEhJpZVYx3XZ90F KyVKWN9GW9JebBbbZd3jjumR1MrRjfcZk46JFpQGHpPSvH1v67M4NxtkFDkpo9ZVfmLK +BmEhKFW6fW8fLEVnNTG7K54pfqf/3gg/aCDwBKETJL1feWZ/zcPaXMy8SfWcoyG78bp I+NA== 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:arc-authentication-results; bh=aivP0De6FkfRpSINNpvLDXJhS+bdInckPj0Rd+tqCIY=; b=kWnVqAJZV6+sf2hSOTA7Cv7WO5VinkErRFRUS+BQJhM5qN+WRz6yksnxIe9vaVmSah 1S5lorkD19Oaxe2DCXQnGcQ/ySkrVxbIzQco8z2tBtce6ytqbyiK4VPlv3O6jNv44sZu DFJJnaX9Y9SPPbtiZUIt+IlgfmYR9Coifdas6ouTCDMiUeVcecMbjm0Vn1BCT8/Y3ty0 z8wklrLaAVdB/nVy8dYR7Zb05RhSj4u5t+JmP0TIF2hX4o2bUPce+pZvU8KlXErkU+nD hE30qLIPm5kDTLjlfdEXUPXviNiA002yONEhr+wx/qgnkeFP+p4Nkv8escXK28k5Q/JO UrwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DCkzw58W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c31si2386863qtc.497.2017.09.15.19.36.39 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 15 Sep 2017 19:36:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=DCkzw58W; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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 ([::1]:55703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dt2yD-0002dv-IS for patch@linaro.org; Fri, 15 Sep 2017 22:36:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dt2w6-0001So-U1 for qemu-devel@nongnu.org; Fri, 15 Sep 2017 22:34:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dt2w2-0007i5-16 for qemu-devel@nongnu.org; Fri, 15 Sep 2017 22:34:26 -0400 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:44197) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dt2w1-0007hv-RB for qemu-devel@nongnu.org; Fri, 15 Sep 2017 22:34:21 -0400 Received: by mail-pf0-x22b.google.com with SMTP id e1so2327085pfk.1 for ; Fri, 15 Sep 2017 19:34:21 -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=aivP0De6FkfRpSINNpvLDXJhS+bdInckPj0Rd+tqCIY=; b=DCkzw58W6d2uE5loM5qOzMwBgz0akDahLU3MJtir9WfUNa/02WZUx8qWRU7GP7ujxk Qe88PWYT4siJ2lo+TLmxdY5tVcTmd7OovVndQk5jYGuplHDgA7ftk7QYbyYfjggIHNaa xL/aHMYID+mkAXN/v/s8wyoeJhvUjnlpXUOXs= 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=aivP0De6FkfRpSINNpvLDXJhS+bdInckPj0Rd+tqCIY=; b=AXMqWsYgecFrfm6kSCcg4f3kHEGvmc9xHP1NjsFUfTJwXkHAKKYhS5Cl1wvE+pNbMS ohlz2Ayh/dQv640LryImR7Uy+kEcW9nLPvNaObOkjHofimwnpjfvZhvf+VOUrbpdY+y+ 1grA7jFylMBfu5EtLeAQnQR6MdVw6wA1sju3Du0YlpRb8NZe22loGIJpaldSeH0OGU6q wW1PX3PG4QbKTclpfKgoAD5B12IdzBcKo/CReyMkNtud6JzNrH+YjXJegxMOLVmxLCIw AGhN4/q/ObuGGrtpWICWo4J25w1khocn9kbCWWWppMkhVEls6TXrg1iw4y2JI83bxyRG mREw== X-Gm-Message-State: AHPjjUjHIGCNhDIdn7kzzWlbAR1owrYbdNY5HRdoZg6qZXC+PE0x9z1l fEHSEZUJMtjDKFdKmWc/Eg== X-Google-Smtp-Source: ADKCNb686wNQZsC1oeD0K1JEjH2HzUWKkbSmT2Mb52tz4EhaphbDwxbSnxGpFgIH7TEct6tb0b8rOQ== X-Received: by 10.101.80.140 with SMTP id r12mr25649744pgp.267.1505529260175; Fri, 15 Sep 2017 19:34:20 -0700 (PDT) Received: from bigtime.twiddle.net (97-126-103-167.tukw.qwest.net. [97.126.103.167]) by smtp.gmail.com with ESMTPSA id o5sm4443621pfh.67.2017.09.15.19.34.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Sep 2017 19:34:19 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Fri, 15 Sep 2017 19:34:11 -0700 Message-Id: <20170916023417.14599-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.13.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22b Subject: [Qemu-devel] [PATCH v3 0/6] TCG vectorization and example conversion 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: alex.bennee@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Now addressing the complex vector op issue. I now expose TCGv_vec to target front-ends, but opaque wrt the vector size. One can thus compose vector operations, as demonstrated in target/arm/. The actual host vector length now becomes an argument to the *_vec opcodes. It's a little awkward, but does prevent an explosion of opcode values. All R-b dropped because all patches rewritten or heavily modified. Whacha think? r~ Richard Henderson (6): tcg: Add types and operations for host vectors tcg: Add vector expanders target/arm: Align vector registers target/arm: Use vector infrastructure for aa64 add/sub/logic tcg/i386: Add vector operations tcg/aarch64: Add vector operations Makefile.target | 2 +- accel/tcg/tcg-runtime.h | 24 ++ target/arm/cpu.h | 2 +- tcg/aarch64/tcg-target.h | 20 +- tcg/i386/tcg-target.h | 36 +- tcg/tcg-gvec-desc.h | 49 +++ tcg/tcg-op-gvec.h | 143 ++++++++ tcg/tcg-op.h | 26 ++ tcg/tcg-opc.h | 37 ++ tcg/tcg.h | 34 ++ accel/tcg/tcg-runtime-gvec.c | 255 +++++++++++++ target/arm/translate-a64.c | 216 +++++++---- tcg/aarch64/tcg-target.inc.c | 340 ++++++++++++++--- tcg/i386/tcg-target.inc.c | 423 ++++++++++++++++++--- tcg/tcg-op-gvec.c | 853 +++++++++++++++++++++++++++++++++++++++++++ tcg/tcg-op.c | 234 ++++++++++++ tcg/tcg.c | 77 +++- accel/tcg/Makefile.objs | 2 +- tcg/README | 46 +++ 19 files changed, 2651 insertions(+), 168 deletions(-) create mode 100644 tcg/tcg-gvec-desc.h create mode 100644 tcg/tcg-op-gvec.h create mode 100644 accel/tcg/tcg-runtime-gvec.c create mode 100644 tcg/tcg-op-gvec.c -- 2.13.5