Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4394670ybb; Tue, 14 Apr 2020 06:31:18 -0700 (PDT) X-Google-Smtp-Source: APiQypKMARpBOkuToySlp8h1Es0ycXIa/7ptRs0DikrFSm+loYZsjiAel76hCNs4FvFT71Z6nsCu X-Received: by 2002:a05:6402:4ce:: with SMTP id n14mr6635297edw.32.1586871078279; Tue, 14 Apr 2020 06:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586871078; cv=none; d=google.com; s=arc-20160816; b=luPDAA1d2hpYy3Xi1JgvHl4weDrwpEiiclzV60/l+SlPWEh3GbLXOk5Oft29S4gV0O EXUwrUIc6HgWt4xH5E2KaOoUGspplXKUjLYRn3xBaUN3Xb+Jpl8vUHzS5PGGq+s1c6tE uDHbCFKCryuwb9AG54Vmj0I7NQWLVUsZLggFaSdraciAOQ0/0gBGIltiHOFyCfsdSX3D 6hNYR97lenriCUPpajqoPQO76QXmE6m8k1HbA8l4XCUwfddCyABkhy2oASwm18iSjomv TxXweT8CQv0XMmOQqsKeaHY/qKOMcXcq3nAfC6YGmTOEscsr5Sd/rj5jWuX7L/zQFzUL 6PTw== 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:dkim-signature; bh=KdK0zPwtveoXwIU/pJ0It4FhLQkN9xabxjzAbXM7HUg=; b=cpHsCuHUxQvzGaQVbrdUNrQmtD63ddtMZNVPihfO0lKEjrbBu9ZLAJnfk+r7yh2rWr wI4SlYY4YUKVppvtTbMgrAQC9fORtMWEW7vPuvO7g0v2r87bN0iOS67VfmTR4G3dSZbJ vn/kbMrU29TB5QbOPFk7lcYSvWr6DwiPho7Kml/vor+lsnEvKTq6Ro4Wv6TCMZgyoWBF hL5tiSVM1EnFdWEJ1uziGgHwn8OTX7JeeDQ+1jyoDk4bTKW4OOB233deUBIz8dCmcNcC 3nI4otJqsNSdpY/tvFxq1inlTTuHYfROcrYNchWZMc2fROkpOkc7E2HYongjbH/PEk6B CM+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pCeStENd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si9369738edq.314.2020.04.14.06.30.54; Tue, 14 Apr 2020 06:31:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pCeStENd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733157AbgDMT0a (ORCPT + 99 others); Mon, 13 Apr 2020 15:26:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727849AbgDMT03 (ORCPT ); Mon, 13 Apr 2020 15:26:29 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDA07C0A3BDC for ; Mon, 13 Apr 2020 12:26:28 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id a13so4969580pfa.2 for ; Mon, 13 Apr 2020 12:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KdK0zPwtveoXwIU/pJ0It4FhLQkN9xabxjzAbXM7HUg=; b=pCeStENdG/6hj1L+u+cxwBd+lxmKze8JFGF8eG5T6Rojz3ubtHvutlqKjh1KPf6A1O aVJALpWYIoX41Wh69ZxBMS5ZrlWERrkzwlEgCrDO/r+22JmIYx76G5gf1ZTL97p90L07 RaKonfqiZWxrjLkWbK3up26Zr9TpJVztjD7fmUypSnBONt4CK8hKMTgKAlUz4vTqWPR9 m1vmfM8NjyP7tp1Wr6BPswfx8rXp27YDEOmnMAHKaw2g6gy0HL1RmN/M2oftUt8BZq+N xfxfpd+p8cC/w61Ukhm/QDEtNS9d35nxOgPWvBQrgI3bs8FgJwfqoHaCQNESYpmQj60s LIBA== 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=KdK0zPwtveoXwIU/pJ0It4FhLQkN9xabxjzAbXM7HUg=; b=mM3gUyG0aJ4k307CgB47AsJz2pOfb9KT8v1JKIYOT8sAnZaGr4+j34qjqLztTjS/b2 CE5MdZ2f0nUGJYVA55+daJwajKORqdVAYEMNGC69w40OQNfdrtVI0/40AD7Zvb1wYy7e TL/ntuG5fHIo0pni5yri31iZCjRh4CI+XUZ8DoWLPRokvElz4z/XAmEFIpFHuHA4J6xS twDjHVUUcpAu2Bp0WRxK+ELv99DOWywYW2xv+Dv1SpZQYEaqngeOXVmMnHAs+aGdFybs 39Kocx3LPDpIcWiyUeMQZxe9v2guzQvgUjXABfmnNbeN3a7oYRJvYAhFcuj+R0I9bDj8 4JFg== X-Gm-Message-State: AGi0PuYKDPa66wfV5S6LvGMwM8dXHEdFQzslB7mK1XTI+LYp/EY7FvaK kG5xJLE+t/JDV7BgLy4NJ+cOI7KpAl2Jon+Ml+P7CA== X-Received: by 2002:a63:6546:: with SMTP id z67mr6229011pgb.10.1586805988175; Mon, 13 Apr 2020 12:26:28 -0700 (PDT) MIME-Version: 1.0 References: <20200409232728.231527-1-caij2003@gmail.com> <20200410165948.GD448831@lunn.ch> <20200410183420.GE25745@shell.armlinux.org.uk> In-Reply-To: <20200410183420.GE25745@shell.armlinux.org.uk> From: Nick Desaulniers Date: Mon, 13 Apr 2020 12:26:16 -0700 Message-ID: Subject: Re: [PATCH] ARM: do not assemble iwmmxt.S with LLVM toolchain To: Russell King - ARM Linux admin Cc: Andrew Lunn , Jian Cai , Linus Walleij , Peter Smith , Stefan Agner , David Howells , Mauro Carvalho Chehab , Manoj Gupta , Benjamin Gaignard , "Joel Fernandes (Google)" , clang-built-linux , Ilie Halip , Masahiro Yamada , Krzysztof Kozlowski , Bartosz Golaszewski , Sami Tolvanen , "Eric W. Biederman" , Arnd Bergmann , "Steven Rostedt (VMware)" , Jian Cai , Doug Anderson , Dan Williams , Linux ARM , Greg Kroah-Hartman , LKML , Patrick Bellasi , Masami Hiramatsu , Tejun Heo , Andrew Morton 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 Fri, Apr 10, 2020 at 11:34 AM Russell King - ARM Linux admin wrote: > > On Fri, Apr 10, 2020 at 06:59:48PM +0200, Andrew Lunn wrote: > > On Thu, Apr 09, 2020 at 04:27:26PM -0700, Jian Cai wrote: > > > iwmmxt.S contains XScale instructions > > > > Dumb question.... > > > > Are these Xscale instructions? My understanding is that they are an > > instruction set of their own, implementing something similar to IA-32 > > MMX. > > > > Would it be more accurate to say CLANG does not support the iwmmxt > > instruction set? > > Yes, because the XScale core on its own (otherwise known as 80200) > doesn't support iWMMXT. > > It's worth pointing out that the iWMMXT instruction set uses the > co-processor #1 instruction space as defined by the ARMv5 ARM ARM, > which is also the FPA (floating point accelerator) instruction > space - which is the FP instruction set prior to VFP. Reusing instruction encoding space? :-X I'll have to look and see how we define cases like this in LLVM. > > The LDFP and similar instructions that binutils decodes the opcodes > as are FPA instructions, and the LDC2 instructions are their "generic > co-processor" versions where there's no FPA instruction that matches > the op-code. > > I'll also point out that the reason the iWMMXT code has never been > ported to Thumb2 is because there are no equivalents for the > co-processor instructions in the Thumb2 instruction set defined in > ARMv5. Hence why the file has a .arm. So, the fact the file hasn't > changed for a long time and hasn't been updated with "improvements" > such as Thumb2 kernels is because that's completely irrelevent to > the ISA. > > It is an example of code that has become stable and mature, and > requires no maintanence with GNU toolchains. I agree. I think this is something we can mark broken for our toolchain in Kconfig for the time being, and revisit once we have more resources to implement (leaving the sources as is). -- Thanks, ~Nick Desaulniers