From patchwork Thu May 14 21:28:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 186787 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1770506ilb; Thu, 14 May 2020 14:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXAp4pZsFOcy4jMACHDQFpwU7WXlu1NdyPkd7h6Q6TXK+RkdgJY+vR31um+R6mZcxMRbSr X-Received: by 2002:a50:b286:: with SMTP id p6mr91891edd.350.1589491752325; Thu, 14 May 2020 14:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589491752; cv=none; d=google.com; s=arc-20160816; b=kRuIQydmXeslpAii4uNMOQXFTqu1Fo8ma5zQbTZwlc2bBG4U0+MNco2lE2PasEuGvx SDKS8pVBNb1lq4zrgfqh2C4qHuL19Dxr/euG0X8ftKpVhVB9Ft7vhk2Gfz4MSPRfA8vr 6yxcEj9VxpjJoCeqsd51TllPRH6R2erwdSEoeZrA3puIgbXQLgXRgZyTpVfvPIilH8UV y+8EEUYaitT/ePhk3qlTk+5NsK2xXLbSsBTyNzHPT8e4kT3/XFpgKumwDwHAVkvrdj9B L2wL0BzsDxS6xFXeEBZtP+CC2W8jpc+L87YYATcXVtOIQmZ3S7OEJJ/xVIXj+rQsROgf JWLg== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=4hK64SaAIyCA4e+qcZ4V/7FFwWXibh8/hVGB6NZ+ilU=; b=kJrX+O34ZP/A07U+0HbJLS2bJzSZ+MKldM7ztXMkY5ov5hsRPyOlj0F2/MXYIZd9SD UA+VUyQSYOjXpa7XF7PHcuhI9npWz6T/4BvnJfkA3mEtB5Ip8LLhGKnM4T1vuCpMYQPu iwHoFAXQk7JQe7K/whZi4TWbsk3fRqQdTN6WQ5VB4y8gHm6w1TYv7Ja7DB3hzQsiO4Tt jCYx9g6gkPexhW7W6vEs/OqNXjAuO9tmFOZJLz8NdmKazY/awvQ5oHRykdD0BXjVO1sp EGEKNQCsslewNxy+WjmLyPo5QHciMCuUIC2YjXe2gaP7k3y2+slISBIZVQ0pvjEIlLDC RTuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O7vsK8Iw; 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 i12si2739094edf.273.2020.05.14.14.29.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 May 2020 14:29:12 -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=O7vsK8Iw; 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]:59350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZLPj-00041x-62 for patch@linaro.org; Thu, 14 May 2020 17:29:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZLPA-0003zz-Nz for qemu-devel@nongnu.org; Thu, 14 May 2020 17:28:36 -0400 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]:39484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZLP9-0004bI-QK for qemu-devel@nongnu.org; Thu, 14 May 2020 17:28:36 -0400 Received: by mail-pg1-x52f.google.com with SMTP id u35so1823332pgk.6 for ; Thu, 14 May 2020 14:28:34 -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:mime-version :content-transfer-encoding; bh=4hK64SaAIyCA4e+qcZ4V/7FFwWXibh8/hVGB6NZ+ilU=; b=O7vsK8IwJyp3bYGkcGCOd8AgYpVxk5fQJvE7VvjPpyqRH7rhWA1u+hJOPF6S6h95DL vrkMX7Wg64Bdo3mvASFBSyfTQ1V8HrQUYjIO42ge1+1Y7j+uxnF78oiyS4b5wf8Nfzbn hkyPHEwz1yRTmY3ZjfBK2H2Brgiu98ya32+Wkk8lFrEOamwIYxou2fIOXTLvNa9a1ysn rZbr9mpKOBLhpx9Ub4wlKLj1KVJS3jBpAPHx/JmvngSDOYntFFsYYujiNqNw4rIDazii /d1CuJmInAU/QN62y4CiPtjJXqE3zxNFV+Ja02VFhGaaJztWKmwj9BQAxGHuyGVb6G8E 9GUg== 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:mime-version :content-transfer-encoding; bh=4hK64SaAIyCA4e+qcZ4V/7FFwWXibh8/hVGB6NZ+ilU=; b=dIlnRyB+6GAjLN9OmsBHKRJFdkguFiCvU4yGsAsGRYviSrxwr/96+CYVnKkOudgVZf aAoPX5MEIeHe6lixhQnL3/fXnokq3SynnYhWRkabDSQ914ErSex/3uNbtvPPan0x1him +Nctr3x8SDxPrmoVm4qRScLwhkXU8PCyxGt5ZftSuWcJmjxjgT3SFCej7PwUJg9wUsBJ Cm3KIOqgkkwHGMUUCftk6IH7KWqJkK0DyFw5HU6FFah7s1OWGq979W2UDQAaRpoqb/O4 tjV1ZF+z6pDZ3XzbCU9JTCsRkgKMJPaAzTNdRxEH0DALmBALJUFWY5M/T596YWLr6pbz z36Q== X-Gm-Message-State: AOAM530gw6NLpxMIgwL/R/+Z92LwSWfC2HBYY7kIe1gXIQn8dmArexvo jMstBqxVhn6GV4XjBg2EJlYys14dm3c= X-Received: by 2002:a62:3644:: with SMTP id d65mr537458pfa.186.1589491713374; Thu, 14 May 2020 14:28:33 -0700 (PDT) Received: from localhost.localdomain (174-21-143-238.tukw.qwest.net. [174.21.143.238]) by smtp.gmail.com with ESMTPSA id i7sm4986pjj.33.2020.05.14.14.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 14:28:32 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 0/6] target/arm: Convert crypto to gvec Date: Thu, 14 May 2020 14:28:25 -0700 Message-Id: <20200514212831.31248-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: peter.maydell@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" In addition, this fixes the missing tail clearing for SVE. The sha1, sha256, sm3 routines that are not fully generalized are not used by sve -- it only supports the newer algorithms. I'm not sure that this: Based-on: <20200508151055.5832-1-richard.henderson@linaro.org> ("tcg vector rotate operations") will be sufficient for patchew, because it also relies on today's target-arm.next merge to master. But you get the idea. r~ Richard Henderson (6): target/arm: Convert aes and sm4 to gvec helpers target/arm: Convert rax1 to gvec helpers target/arm: Convert sha512 and sm3 to gvec helpers target/arm: Convert sha1 and sha256 to gvec helpers target/arm: Split helper_crypto_sha1_3reg target/arm: Split helper_crypto_sm3tt target/arm/helper.h | 45 ++++-- target/arm/translate-a64.h | 3 + target/arm/vec_internal.h | 33 ++++ target/arm/neon-dp.decode | 18 ++- target/arm/crypto_helper.c | 267 +++++++++++++++++++++++--------- target/arm/translate-a64.c | 198 ++++++++++------------- target/arm/translate-neon.inc.c | 172 ++++---------------- target/arm/translate.c | 51 +++--- target/arm/vec_helper.c | 12 +- 9 files changed, 403 insertions(+), 396 deletions(-) create mode 100644 target/arm/vec_internal.h -- 2.20.1