Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp36375lqf; Thu, 25 Apr 2024 21:00:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxQDNhpMbjGoKpqHHTId+yY5UPfUZr1m8Cnt+p/NIp4V7PVGF8kPWVm+XbVaVkehtS40focopjA/DkLXNLMXrbFa/L1EAztX6sKguLdw== X-Google-Smtp-Source: AGHT+IEcapcgFbKek6st8V6+9d8COdKQ5E/RYIqkv01keMB25QAFphi/9W7SxJz292p8fWw6aTeJ X-Received: by 2002:a05:6a00:23c9:b0:6ea:f43b:b961 with SMTP id g9-20020a056a0023c900b006eaf43bb961mr7832592pfc.6.1714104032524; Thu, 25 Apr 2024 21:00:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714104032; cv=pass; d=google.com; s=arc-20160816; b=i8tSEYsm/WYK/ZBI89QVxx6P7ArWVnaa08eH8VZTzUZ3kum/zzRqbUtIgmBABdBU55 rWQr2nCjSu+0sZqPSAxgN6iCPnJD7rOgjXG4H7gM4ykwmfVRr5mpsCcALmE9w9V9b9Nz IYjBZ2R+iZUwJwtz5KZ+hi9D22GSovPLFhWOPHZ3ZG78RRed032wdvnTTRwBc7Ae0Mxj Kgl40c3sp/OB6JnVCdQIOsbiFdkgX+E6qOSmCNKfo7FIOPueTv6SUDOB987FXHzWNM65 dDIMcmEnn8KHgEDeZzDFXBNAThiZKYZgpTICnsFPnZXKE1j4zz8kM2KXbMF00jGOGnaG 6iKQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=psgh9mN4neEsUxM3r862JtcrDDTWhsY6AeXjf7nsG10=; fh=Q+XEXNSKuUV/SdfBcAJicyED6Kgu75TpUubiMLvCNlQ=; b=0LZzTtW8EE/nUO9ZN/XpxiUmOAb0FwmDUL2Rj2aU14uoLeXj1sIbdaT2vyOXHRGWv+ 8lu6n7yXqQK4T5fv3YWuG3aGagQ9It4k4QpArYebio88qpFsLaINd+0w43J6cbXf1/Eq MKM4PxjnuKV/YF6egAFvryjZ7M9s+l3oUYVPGqYppnGVBxy4/bFPxUjDkfIc0fCVPBm6 /j+j0kU5N4fJQL/9rdPS3pYzHeg/cLeQMnnXA9NyFkvLHGaMm7q+Ggenl0OXU/37yAuJ 3JV/lwSSdcQ1mJJRhlB78yZDctK0FtGJbKubWSuqWDFGvwXJd5L9+2vILAJkmRI6Ul9H mKHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RwY5ltnj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159488-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id r7-20020aa78b87000000b006ed25e7f702si14358855pfd.304.2024.04.25.21.00.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 21:00:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159488-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RwY5ltnj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159488-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159488-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F337282ECA for ; Fri, 26 Apr 2024 04:00:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C77C97F482; Fri, 26 Apr 2024 04:00:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RwY5ltnj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EE52D7EF0C for ; Fri, 26 Apr 2024 04:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714104026; cv=none; b=tEJDXfl0Etrd3trHN2Aby05rHI2GoeQWQl/bB9sA/LSzOCJrlAPwc1sq/IsEChDfw0c/Qkp0n7SaLgSkXp6/1ci4+01w43K9JVuckUcFM2tcfNPgtyYNhTdiJpzICOQ332+XJxYzf/Z8DHPYFQT+PzIPNzFbs3bBoB0+HJnSvd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714104026; c=relaxed/simple; bh=6IC3mHpeeZPSEwcTPiOjDlzU/H1EDBwij4FYzlBTHYY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=h2DGoUQxWWUDW//Rr8eoetTEXNur43MKAOplun7qOUt86YNSd6H96yb6FuTaVJwxD9xlwgCPRKIWtYq5WBT7gY7goT6ua9c8QqSHvgLp+cMeesmWvCtg+0ZH12cnbawyohHWbZ1neuVwpohTTx/72Y32FeabCERPlRKFnGVzrJM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RwY5ltnj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB0E3C2BD11 for ; Fri, 26 Apr 2024 04:00:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714104025; bh=6IC3mHpeeZPSEwcTPiOjDlzU/H1EDBwij4FYzlBTHYY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RwY5ltnjfloxnxt6e7hDwlYSn8WjhG8w44bQYv8c9N+gcEewrbLodw4s9gI+rXHGT B5Bztdw3RCcNVMQUAGRKskKnpscfN1H0uMB9Eg4i+3lubnbD4WJAt+vUTOnTFgzni0 USDQAemTk25si6z3cTmyn8gaWPni6MxC3yoCZACn2a55Q3fg9HqtWBSlcpP8kq0A71 IK9aHAZcxt5iv14oIGV5zFpehthh2kQwydzl5kNrGrJsq8qULkrEANrYuE0i/JtigD +hA2ZkjlwAQ2KXRNfAmpkrH7oiPoxobPs4subGQUfT0oIzI/JWdJFbrMeiL4BO3tzy jtN/yxSq98sTg== Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5708d8beec6so1991326a12.0 for ; Thu, 25 Apr 2024 21:00:25 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCWB27eWVuskdOC9u/9Gpu+SEfEyriGxouvGftqFdAywpnWPCwg9Ho5wBD4CaUdYX4i4BLpaoAo+AxHhS5fekGu7/VcaqrTRLkDozawQ X-Gm-Message-State: AOJu0Yy5/pTZervxUzynZhgNNeV2Lw4oJb/qr8JXoriRXWBRuNjUT0H9 /XAj/AvTN0wuEeNsqyK3lCADE+2zpViw8xztQ/i8fpFKXYdiPhbv4x095R6qPT/p2BsqJKoXfmv iQPK3UERLaU2C6983iy/ST6TCJbI= X-Received: by 2002:a17:906:27c9:b0:a58:828b:a4a6 with SMTP id k9-20020a17090627c900b00a58828ba4a6mr1478943ejc.73.1714104024323; Thu, 25 Apr 2024 21:00:24 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240327171737.27622-1-xry111@xry111.site> In-Reply-To: <20240327171737.27622-1-xry111@xry111.site> From: Huacai Chen Date: Fri, 26 Apr 2024 12:00:12 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: Select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 To: Xi Ruoyao Cc: WANG Xuerui , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Tiezhu Yang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Ruoyao, If enable CONFIG_DEBUG_INFO_BTF, we get: loongarch64-unknown-linux-gnu-ld: kernel/sched/fair.o: in function `mul_u64_u32_shr': /home/chenhuacai/linux-test.git/./include/linux/math64.h:161:(.text+0x5e4): undefined reference to `__lshrti3' So, could you please implement _ashlti3(), __ashrti3(), and __lshrti3() as commit fbac266f095de92b93e7 ("s390: select ARCH_SUPPORTS_INT128") does? Huacai On Thu, Mar 28, 2024 at 1:18=E2=80=AFAM Xi Ruoyao wrot= e: > > This allows compiling a full 128-bit product of two 64-bit integers as > a mul/mulh pair, instead of a nasty long sequence of 20+ instructions. > > Signed-off-by: Xi Ruoyao > --- > arch/loongarch/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig > index a5f300ec6f28..5a769bb92d7c 100644 > --- a/arch/loongarch/Kconfig > +++ b/arch/loongarch/Kconfig > @@ -56,6 +56,7 @@ config LOONGARCH > select ARCH_SUPPORTS_ACPI > select ARCH_SUPPORTS_ATOMIC_RMW > select ARCH_SUPPORTS_HUGETLBFS > + select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 > select ARCH_SUPPORTS_LTO_CLANG > select ARCH_SUPPORTS_LTO_CLANG_THIN > select ARCH_SUPPORTS_NUMA_BALANCING > -- > 2.44.0 > >