Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp826096lqh; Thu, 28 Mar 2024 19:14:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmtJoT5b8TJCOzS0qq4JhYFvYlFCxlI0jdIjvUfVJccCtsS9pPGuRzgLsKN23RZ+ryRQuDDbe7t7c8YqdXiKHtU+BLDdScWoogfSq7Fw== X-Google-Smtp-Source: AGHT+IF6w1x7qI0oTutsCA/5X8+Q/YD7QL1xvQZeWT+SwIoQZm6o+50IfE7pm0eUTLZaUT2CAVIE X-Received: by 2002:a17:906:7216:b0:a4e:292e:7e89 with SMTP id m22-20020a170906721600b00a4e292e7e89mr545114ejk.42.1711678443010; Thu, 28 Mar 2024 19:14:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711678442; cv=pass; d=google.com; s=arc-20160816; b=rCwiwPhHlVX3yyhuCwd0aEtD0gprWJNgng9EfucEBalT1YpLc1Nk9OogAL4wiApvKC 8DKuOHx6IRtBcqm3l4F1JRgY8/awKVpzMEwgN7SRTBDLBfARdknNkPNXNIkRRsHYn6vY AMGRbv7fYH9oqLVzSucOqaFGzX5JQTX1YWHv1rX0yukDTUGtSSxdk9bZfOn7i6aUM1L4 nw8RApMtiWtUmrh0FUFYKaFxfC8LmkSSJDS1UK+WBOLDR+ZMcWMn5gqVR2aL4zF4xcbC lT1oYwngxn7e8ysPgC4vTt3nueiNbvf+YfQsY+XikNJ/IdFzzk9u6HzVsX4NMRzVqscD oFwA== 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=mDuDpEX2OAZIDrEyevDzzTLrEML5sGGzVIJzgRMlbGQ=; fh=8deylqo4juvK87zRD++ugUk0pbrgl/LAtNGZ9f07LQo=; b=QHhScW1AfCHI/tiYi2z9i78tuaa1FjT38x/HQi9QN6OYo3zVrYmjDgwuCzpWAD5CUn ccrF8TmZDK/yTRT2tDfiPwoRdzbd54X8FrxkuVOOJq7OKRM8rba9+FsFuazpgJCkJa9M m5DijKD0Mdl6xbXtTCycEVpJajHjFO36EFFMkZa7eo0qP7R7OJX7kLcO3mLM0oJFPGxr jqQx4chz2W7S1uitK0OaBkHidWUl9ad3SN06JlUwATby0IVK46h3kBh3R6Y8qnRb+VTR qtZmwdQO2yxafV+JGqz3xG7OS1UfT8wmFO1VmNMTCjdZgEAWgGJ478O1U4lgYcZWOYVz hZIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rLwPVGdy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124048-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d19-20020a170906641300b00a4e234aa251si1118817ejm.61.2024.03.28.19.14.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 19:14:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rLwPVGdy; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124048-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 am.mirrors.kernel.org (Postfix) with ESMTPS id BAEB71F24C15 for ; Fri, 29 Mar 2024 02:14:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30B193FB8F; Fri, 29 Mar 2024 02:10:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rLwPVGdy" 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 435DF3D984 for ; Fri, 29 Mar 2024 02:10:05 +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=1711678206; cv=none; b=uidf46bOe+T2Ps9R4y+lsyUrVuc0xiu/BeymDnoiZ25m6S6Ac3+t55+jVH2jItFH9ELlyUh5OpPZEWwJ4ANuCwIv/6lR5FJNaMOK3rtUlDq89SINWENeuJ4Qcl84KK3cdLmMgWI8i2y5p1Hj8igMIx52PfetXBK/zQbt8ETk4bI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711678206; c=relaxed/simple; bh=O7xbgBgQOtN6IeYuQy/GU/n6T4a1CY0hLFYa9laj4dg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TZUBg7ZIsKe5pEqqPagLhxmQZXojqIw1r+K+N8dw+YxlUgMlRSHaCuOS4Pt3hgxI32rNxhsNLUw+Nu9lA5R9mGyvCNQFk5mehs30RzNsl7utH920dOISoniD9IcdgN8lN1g1aANJd/YjXIXLIkYBnlIy/GNcWJCyVMToz6lNciM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rLwPVGdy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C9F5AC43330 for ; Fri, 29 Mar 2024 02:10:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711678205; bh=O7xbgBgQOtN6IeYuQy/GU/n6T4a1CY0hLFYa9laj4dg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rLwPVGdyfUQ9Q5txgWZV1ray66tLnDTvru7ZC00uj72yHNLM+5uQBAyuJqOx6oAw9 abEHw0If2LAZPK8uSc6lmAyNOYXALEjIXNyd2eicIJFb8LyFzcbdYg/FWbDqn2W6xO OLV7xPd9JNSQULR57xL2cr74eruXBuq0DoxPUJ1IRnMr63FhQALGAopQ1Gd06OLmmq 2zBE5Vr3Wkxt/ZdJe6cuoCw5wTNNRDb1AYJR4UjhgHi9TaAUMxBUAW/mlbM/pz7961 Hnwl0VSIIy5GFdVZwgIFWK9sfSOrc/+jz5PzlpgkOVrB3dnWUwPdPqO0nXkz0NH+7s DTRJ3mwZ9tlPw== Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a46ba938de0so216127466b.3 for ; Thu, 28 Mar 2024 19:10:05 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVrgAhKg3xKChvJHvYEb0LQvnXH+RcM+pVqU21gYYdVzF2wX6dyjzOqH/naMzfIAioiY66lfCZShEwRQw3znM5XKKLZTG4GmwDkiUAK X-Gm-Message-State: AOJu0YwbDCe90vn2h4pcJbANgDLCtMoBWaRN31nXMbJ8ieqDmeQjiS1M 3NJZuv0wwYAa9M9hFo9tDQzvMDDCueqw9sOr/21d5Z1nutviAFX55qspqPCUgPytkupF4E7FAXo l56DHueoXndWQCa0ueN01WPXLy2E= X-Received: by 2002:a17:907:868a:b0:a46:c11d:dd01 with SMTP id qa10-20020a170907868a00b00a46c11ddd01mr761930ejc.50.1711678204472; Thu, 28 Mar 2024 19:10:04 -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, 29 Mar 2024 10:09:54 +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 Queued for loongarch-next, thanks. 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 > >