Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1243952imc; Mon, 11 Mar 2019 09:24:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEytdc+XGJQnytYXnDgc9hiPoXiPDPwiNQZ+p5dIfg99Ed9cXggnZwa/HgJLsNA2wmHXeX X-Received: by 2002:a62:4ec5:: with SMTP id c188mr34111660pfb.230.1552321462755; Mon, 11 Mar 2019 09:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552321462; cv=none; d=google.com; s=arc-20160816; b=CyNM3YvAH1femRnBgFhTx8SDWjEWgaNd/szqAXGpOycrSfgglRa5GaIWCX0bphBMh9 MIcTfRSJyI08HH/fq631neslNMhtKZ5Ozw4E4hYJLDX/UZvHlJDE810tFcHG82wRQ3CE pqKQqMnspttDltTdlVTaMLLcV1sE1Q3fQiPcHsdppVDwS9R8ZuE1mwr6lakbu/MNVsEo RV4PX+CqTb4rMZePr9g5GJNLBc9NBRngDWLahiARx0i6y5RLlp3PTUhw9X7L7jqX5wgY b3Ll9aTOVwayzfTWTf3CV0l77Gj2sPO8AQlLwfuf+vuBssPDejJAGFmbhMw4IySA+2un k13Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=ve85xHaDm+JKbPQbqtfepcK+rnO+6Ikd52hFBQTzdQc=; b=ERj05MlU9TAySAHDEKoOwPO6g7v9WRJ7u57hTySfI92+bdKiduNXw5o40A2QYj2BSB cVRkHtUGf+CY0kAqLfuVOOlujhQz8uRROup2VJLtNmrH49MYXO6LvnT+FEzQBhecqM/L 6DrQwO6TdhLuxaxz2En2laDJ3k7Xo5Dv/SGqty/95xSFX/2mG24dTz3IWcW5Bclzu8pS aQDgam4+mMA5bUiDkg82u8TaQc0aJAR11FaCjExFAGmXdQuEQ/Z6L34ibzf7AVOa1Toi qPo6iyrqrjUzRWYtT+gk+XuAUrxkRLRrVevV0KdizZuzKS8zVwBxHKxS9UQBQ8ouiIDa b+Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si5303650pge.12.2019.03.11.09.24.07; Mon, 11 Mar 2019 09:24:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727469AbfCKQWO (ORCPT + 99 others); Mon, 11 Mar 2019 12:22:14 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:42310 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726977AbfCKQWO (ORCPT ); Mon, 11 Mar 2019 12:22:14 -0400 Received: by mail-qt1-f193.google.com with SMTP id u7so5700151qtg.9; Mon, 11 Mar 2019 09:22:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ve85xHaDm+JKbPQbqtfepcK+rnO+6Ikd52hFBQTzdQc=; b=j34wWTTZ49rV/tjhaAJc03KKHIQgSfZoC71EPaIBbQWNFhlz7nkoc70GkEdD6ROq7s cvTonuEO2+oVnu4ZoUeLypKUEs+XLI7V/ZDC/m982kIivqNaPz0xICpUeRqrYG+DiUEV HuMBI408ru8pHwd0zAJkKt3o+ccfPNo4TfnejojrX77s6Bm/+yZgF6kS5vu3gwsLiemc o6Ur32Ry6YIAOunwBGqtW1lm+RIbv9+V6H+cQRnEGSIFiq044dB88jmhrXnJnv8wVcJR fmw4h5tMJOecZE41zxSqFfoCfvM0lkS6z3KWWGsJrFLTayR3Lvs45Y2/+PrvWxVAoXAL Vddw== X-Gm-Message-State: APjAAAWjnarEhUCKVzwkwDH06JM5kkflFDdMdnEMbbgxNo2pXUoTYgC5 Znb6VwQCFH+FLi120uJo7xECO1o38OPFtFpUl8Y= X-Received: by 2002:ac8:237b:: with SMTP id b56mr26150579qtb.343.1552321333276; Mon, 11 Mar 2019 09:22:13 -0700 (PDT) MIME-Version: 1.0 References: <20181215212304.19390-1-natechancellor@gmail.com> In-Reply-To: <20181215212304.19390-1-natechancellor@gmail.com> From: Arnd Bergmann Date: Mon, 11 Mar 2019 17:21:56 +0100 Message-ID: Subject: Re: [PATCH] ARM: Ensure that NEON code always compiles with Clang To: Nathan Chancellor Cc: Russell King , Ard Biesheuvel , Nicolas Pitre , Tri Vo , "open list:DOCUMENTATION" , Jonathan Corbet , Nick Desaulniers , Linux Kernel Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 15, 2018 at 10:24 PM Nathan Chancellor wrote: > endif > diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c > index a6741a895189..4600b62d845f 100644 > --- a/arch/arm/lib/xor-neon.c > +++ b/arch/arm/lib/xor-neon.c > @@ -14,7 +14,7 @@ > MODULE_LICENSE("GPL"); > > #ifndef __ARM_NEON__ > -#error You should compile this file with '-mfloat-abi=softfp -mfpu=neon' > +#error You should compile this file with '-march=armv7-a -mfloat-abi=softfp -mfpu=neon' > #endif > I see this patch has made it in now, but I also see two other problems with the same file that prevent it from working right with clang: - it triggers #warning This code requires at least version 4.6 of GCC - As I reported in https://bugs.llvm.org/show_bug.cgi?id=40976, even when it builds cleanly, it does not get vectorized. Has anyone actually managed to get this to do the right thing? Arnd