From patchwork Sun Jan 27 09:16:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 156689 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2218856jaa; Sun, 27 Jan 2019 01:17:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Ll4Vk+vA8Vy1Y/+ko87k9k9NWEjCGrJYFtBKBr8E88rBgiHBwxWz+wqOlWmEgUamWwQfX X-Received: by 2002:a17:902:6acc:: with SMTP id i12mr17216868plt.148.1548580642188; Sun, 27 Jan 2019 01:17:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548580642; cv=none; d=google.com; s=arc-20160816; b=W1woi5GjASSzBbXDKcbdgfwl06cvBj4xZoibjJ3Zcz3wVOlT3UHfbDZ4beFAF9rWhI nX5Xx5D61ko3Pw+tdVb1wPzZDHa3l7OQjPdfaz5pkC+1gXjFEseEHkcO3T3pi/JSq0uW TJfnWs2s9RUWlknzVWf+bn1h+u/4DJjjb0IJvOLRaJ7ZYUTTO962nLvR6pXKTnIOn4/v poa+ZRvxsklvlmO5McR7JlTqzEJS3BLZ5RCIUyT0YxFTpbMB1MR50l4Qt2vBJfEQWWTl mucBgYqSwNIibuItjHDNhhLjKkQxZq5WovJE0ze46oVmN8c4VMny96ypmYhMCotGNsgb xdSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G/cXfni8tC087b78yKP77hOg0xmVLVtxIh5Ne/oqtbI=; b=v3CfrELIiRFrndnLk/MujvDKJlYkgvu8J05HJFRZLP2kuWcDqLzXWyCchCGyVCk9dx 9jCdnH2mLvd6PglwAxZ/kIQCrnupcPXHz2kJOtkgQXUgBr6g0iZgl7ksQf0GGw5YScAU tJnhaB9HJgEL7H674fTgUOiJrrVdhGoAj7J8Rqmwg2MLtCPKMJvERySfXlFCZXFO6BbO 42UNKxgk5NSHpT1QerN54ZK0CSK1rl4ufZNxKvAkbFo6dX2x13PAZzjWSryPmN7y88Wr DRxKD5YTqCHkL8JjiGoiho/CEHawLnckmku8apEv1zDapn7K8lGr1kEsH0LlIZNLVbTm BfoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CgF/Io8R"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i33si12248598pld.329.2019.01.27.01.17.21; Sun, 27 Jan 2019 01:17:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="CgF/Io8R"; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726487AbfA0JRV (ORCPT + 3 others); Sun, 27 Jan 2019 04:17:21 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38540 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726419AbfA0JRU (ORCPT ); Sun, 27 Jan 2019 04:17:20 -0500 Received: by mail-wr1-f65.google.com with SMTP id v13so14592778wrw.5 for ; Sun, 27 Jan 2019 01:17:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=G/cXfni8tC087b78yKP77hOg0xmVLVtxIh5Ne/oqtbI=; b=CgF/Io8Rul3HwRKGuljVs2V0IcBHdz7kEXJPBSfz8qtJDIBrQHsbFJaNlBS2RODl3C Lq4ZL2T9PPQ7H6HGcMwCcTEmBFctsznC8u03Mjr+Ml2tBRH4gLAtZMTaAfSLcE6VG4z2 GbInX3fWlhiwulKzWbMysYKydEuox9VZZVN/w= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=G/cXfni8tC087b78yKP77hOg0xmVLVtxIh5Ne/oqtbI=; b=UyBNyBB2wfgZaZzk21Ghsc6qHGhscyTWoPKJjtOERpC0Eb0TVXigWk2gri4zvmLvb/ lJZrXalgDDEUE5kKs07552txnGWBJqaA066Iw68MtWA6T2+mDf4P0zWpxOiFTZUGXSFJ WLHaRnKpIc8OqjuI7PhxzX9B4a//qbi6cg3eYE7MEOnLQcVKYP342jiUrSinRFTrjHxo onD/RKDszZrMdWg1Lh/6KYqK5kb9sH1Ef2BJtFRcio9vYXBU2Dii4z5CDuMvwhSy7pLk Fu6xqRxyBiczP6/UM6+hDMktf2xIPJ5lOcvHjLanwRmu6cIeAsh4cXvlfvGnSMT/Yddi Z/SQ== X-Gm-Message-State: AJcUukezkLrn1fu8Tmy2GBVhTccabFFGzvm9NLt6CnUxLpv2iJPu1tmh mva3HJG8KgoAQrZeHRahwQsRTnAe1Ud+rQ== X-Received: by 2002:adf:dbcb:: with SMTP id e11mr18293645wrj.58.1548580638478; Sun, 27 Jan 2019 01:17:18 -0800 (PST) Received: from sudo.home ([2a01:cb1d:112:6f00:887d:32e9:9391:d3bf]) by smtp.gmail.com with ESMTPSA id o5sm45397013wrw.46.2019.01.27.01.17.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jan 2019 01:17:17 -0800 (PST) From: Ard Biesheuvel To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, ebiggers@kernel.org, Ard Biesheuvel Subject: [PATCH v3 4/4] crypto: arm64/crct10dif - remove dead code Date: Sun, 27 Jan 2019 10:16:55 +0100 Message-Id: <20190127091655.6262-5-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190127091655.6262-1-ard.biesheuvel@linaro.org> References: <20190127091655.6262-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Remove some code that is no longer called now that we make sure never to invoke the SIMD routine with less than 16 bytes of input. Reviewed-by: Eric Biggers Signed-off-by: Ard Biesheuvel --- arch/arm64/crypto/crct10dif-ce-core.S | 11 ----------- 1 file changed, 11 deletions(-) -- 2.20.1 diff --git a/arch/arm64/crypto/crct10dif-ce-core.S b/arch/arm64/crypto/crct10dif-ce-core.S index 9e82e8e8ed05..f7326259c40d 100644 --- a/arch/arm64/crypto/crct10dif-ce-core.S +++ b/arch/arm64/crypto/crct10dif-ce-core.S @@ -497,7 +497,6 @@ CPU_LE( ext v7.16b, v7.16b, v7.16b, #8 ) cmp arg3, #16 b.eq .L_128_done_\@ // exactly 16 left - b.lt .L_less_than_16_left_\@ ldr_l q10, rk1, x8 // rk1 and rk2 in xmm10 __pmull_pre_\p v10 @@ -509,16 +508,6 @@ CPU_LE( ext v7.16b, v7.16b, v7.16b, #8 ) add arg3, arg3, #16 b .L_get_last_two_regs_\@ - -.L_less_than_16_left_\@: - // shl r9, 4 - adr_l x0, tbl_shf_table + 16 - sub x0, x0, arg3 - ld1 {v0.16b}, [x0] - movi v9.16b, #0x80 - eor v0.16b, v0.16b, v9.16b - tbl v7.16b, {v7.16b}, v0.16b - b .L_128_done_\@ .endm ENTRY(crc_t10dif_pmull_p8)