Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2949779rdb; Mon, 4 Dec 2023 11:59:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+a878O0NKsA14pD+XnD83Frn7jEtszFVv6l4KGbMwGFyBNAECHlaTGvcA8NXPGYUOSzMT X-Received: by 2002:a17:902:dace:b0:1d0:c0d2:b194 with SMTP id q14-20020a170902dace00b001d0c0d2b194mr618095plx.74.1701719959618; Mon, 04 Dec 2023 11:59:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701719959; cv=none; d=google.com; s=arc-20160816; b=l8iLMFrNftFW7xK3pEQfgz5Zp5bVJNkE8m7GJ0DNv+0RiOT7Ma8m8u5OpC95q36CAz DEdu+5Mqh77XsWjHbidHbAu6IMO2oeGtiQKnX8k488O8tTLemr1hofLIKlUWJHcLrOls Qr0z59JYDSZOVVD6M0jZlNNrhtwfIDSTiFwP+++T+c1kauMQm8et8dX3B1+ht56LOz6q 2aT07cLQ4R5gY01BZj2l4/doqzpYqTjHxxw01EUibQFSar98RXvPJV1RWq5l/3HCatCw xMZyDex7/TZ093/HmorxkwHHpr/tJuf6IY7qiB4Kg7PLDrnyt901ZNSsMHggOb7qjIDP IWmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7iMUK4vUSVAW6SDRFPATSmoR90ramdrz5cJVkIQLXt0=; fh=DvwdB7wopK5naLkMCMFhdE/rBuldEA0EYsD7t4hRbos=; b=DQ+VYDV1tbIONGtDQWMnTqqQMOGXyJ/NhlcX8zFJb6oVoQ8tMAQ96mDUI3CAbqG3au JFuRBYvfPI7TvkqUqSXB/FwnQOidc4emG3r452/gP19hn7KWQGM7OHXnYDShsqW2GtkR mksnmZEPoNgZiytZTEP3LlZuadYxseJPgyg4xvOEy6WTnihcHniHxt83BJnAS6fUXPZn HSmZXZKBDgFLugGSOHqtzjO3pRLulM+021CADXDb4Ginw8lEmgti2P2w0d1wIajMTuEn IYbV06UzeyKaGLY+I0LeAeh5ItikZKZnTrJwXwK9soSZ5yD5e1fmJE7JTplOQkbEnb82 85sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mpfSE74Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 12-20020a170902c14c00b001d0050e245asi7240785plj.19.2023.12.04.11.59.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 11:59:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mpfSE74Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 402D8809C193; Mon, 4 Dec 2023 11:59:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232848AbjLDT7D (ORCPT + 99 others); Mon, 4 Dec 2023 14:59:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229983AbjLDT7C (ORCPT ); Mon, 4 Dec 2023 14:59:02 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F268CD for ; Mon, 4 Dec 2023 11:59:09 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6DAF1C433C7; Mon, 4 Dec 2023 19:59:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701719949; bh=MXwhypHm/2XEVlJLFiCiCiYnn0Tjqj3lKlj+8mfTxUs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mpfSE74YGQlBzvvMt4KY8SUzEJP3DhJpui6G7u6rqCeg765mjU1ONJHXxHWDuJsp5 fZX9acdqO8SEPmqSFWw1yq27R/JNHi1Zro7BADiK5WL66PulgsHKreFeY77PNrJKLP Mr+YajXnDxCmN9N3n6C4zsJJc9Cqx3n5xNxHhZ+ueAQy8+VGcy5AQukV9HHE+KnuZT 1Vpn4Xb1MGzNur7Zh4M7O3o8MYBZIAuSFf9CWlgvwSeXc/5IFh9RooicFq0wWzU54u 7urAI+8n5q5DNDE75EcU7bJKKWjJFZfac95ajrj1Dc110oUCrKCMZZ+I0R5iptbRbz H7tK/bectefgw== Date: Mon, 4 Dec 2023 12:59:06 -0700 From: Nathan Chancellor To: "Russell King (Oracle)" Cc: Naresh Kamboju , clang-built-linux , Linux ARM , open list , Linux Regressions , lkft-triage@lists.linaro.org, Arnd Bergmann , Nick Desaulniers Subject: Re: clang-nightly: vdso/compat_gettimeofday.h:152:15: error: instruction variant requires ARMv6 or later Message-ID: <20231204195906.GA2045328@dev-arch.thelio-3990X> References: <20231204181304.GA2043538@dev-arch.thelio-3990X> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 11:59:17 -0800 (PST) On Mon, Dec 04, 2023 at 06:26:15PM +0000, Russell King (Oracle) wrote: > On Mon, Dec 04, 2023 at 11:13:04AM -0700, Nathan Chancellor wrote: > > Hi Naresh, > > > > On Mon, Dec 04, 2023 at 05:33:26PM +0530, Naresh Kamboju wrote: > > > Following build errors noticed on Linux next-20231204 tag with clang-nightly > > > for arm and arm64. > > > > > > ## Test Regressions (compared to next-20231201) > > > * arm64, build > > > - clang-nightly-defconfig > > > - clang-nightly-defconfig-40bc7ee5 > > > - clang-nightly-lkftconfig > > > - clang-nightly-lkftconfig-kselftest > > > > > > * arm, build > > > - clang-nightly-allnoconfig > > > - clang-nightly-axm55xx_defconfig > > > - clang-nightly-bcm2835_defconfig > > > - clang-nightly-clps711x_defconfig > > > - clang-nightly-defconfig > > > - clang-nightly-exynos_defconfig > > > - clang-nightly-imx_v6_v7_defconfig > > > - clang-nightly-keystone_defconfig > > > - clang-nightly-lkftconfig > > > - clang-nightly-lkftconfig-kselftest > > > - clang-nightly-omap2plus_defconfig > > > - clang-nightly-pxa910_defconfig > > > - clang-nightly-s3c6400_defconfig > > > - clang-nightly-s5pv210_defconfig > > > - clang-nightly-sama5_defconfig > > > - clang-nightly-shmobile_defconfig > > > - clang-nightly-tinyconfig > > > - clang-nightly-u8500_defconfig > > > - clang-nightly-vexpress_defconfig > > > > > > > > > Reported-by: Linux Kernel Functional Testing > > > > > > > > > Build log on arm64: > > > --------- > > > In file included from lib/vdso/gettimeofday.c:5: > > > In file included from include/vdso/datapage.h:135: > > > arch/arm64/include/asm/vdso/compat_gettimeofday.h:152:15: error: > > > instruction variant requires ARMv6 or later > > > 152 | asm volatile("mov %0, %1" : "=r"(ret) : "r"(_vdso_data)); > > > | ^ > > > :1:2: note: instantiated into assembly here > > > 1 | mov r4, r1 > > > | ^ > > I have to wonder why Clang is complaining about "mov r4, r1" because > that certainly should not require "ARMv6 or later". On the face of it, > this to me looks like a bug in Clang. This is because the compat vDSO is compiled with '-mthumb' by default and Nick helpfully pointed out on IRC that prior to ARMv6, one of the operands to the mov had to be a HI register, which I do see in the ARM: Encoding T1 ARMv6*, ARMv7 if and both from R0-R7 ARMv4T, ARMv5T*, ARMv6*, ARMv7 otherwise MOV , Cheers, Nathan