Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp206439lqo; Wed, 27 Mar 2024 10:40:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1k4zrE96MSMaa9Iafbvc6vEVs8SQ1prCayMgiUWQRHlSGIYSrBA4FZ8oaRL1lGZD9CjgoZBaL73SqgVQT9e9auv27cU1RnikwdSAYvw== X-Google-Smtp-Source: AGHT+IGPzOH5Ij6bOpL+elBnoIuoexfBhpXoFBY7YQhwWO82zmi3/DYSevnhcD7NT094+O0k6uQ/ X-Received: by 2002:a17:90a:bc92:b0:2a1:f55e:d28 with SMTP id x18-20020a17090abc9200b002a1f55e0d28mr324625pjr.25.1711561233017; Wed, 27 Mar 2024 10:40:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711561233; cv=pass; d=google.com; s=arc-20160816; b=Rw/NQm90FRdR1bYCAC2PoU7Ih6JrjEBQ3hTJttdIeLDOTDcJrFt4eG0ofTFNgTahHe XBlabM1Vv9GaVDpa+cPDK3mlMzax0TVl9iv3vXsWW1tv5Zi4FH4Ti9dDxmhgPpjSO+6w iAHIRIYz/QlxHw6f8qckLzElOiTbydLMZHmCm+Nevby8Xi9ZWkicbf+w2Yd6v+t/At4z ByHyvGkLQWOZtlxka+Nsm/4HsUUnF32oY1TBHTs64I6TiyTVTvw9Y/iE6keofsfc9neM 74xOKU18vBUx8mbxFbVxqM4FI+vDS4sqs5eWfH9u+pn+I3Bd/5Yzx9Z3EwwV6rGXDi2Y lWxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=VyTbHPk1PQpyN90TNwDHGjEcCTUbHLfaT7KjyCC6bIg=; fh=YeR47KONE3x4MMDyarnE2n31R1PgLh7pBcan97Z0Ty4=; b=aTUQb22yypcH3aKi/wAXf7rOpIX8zWGPVkrGmDqjgjh+WYK9TWN6jEeij1XTDKMChD 6UkdoDQNE0AZdT1IWLGLu/djHzj8di/9tj6A3GpDuPGOJJAqm4WdETv795QR5+fAHF17 AMmBXX6eFnanYM1v99xZvbrxtF/IUP8HfJJ1yVWtH8yIJ3gEwPf4zL99vhmSYkJUhBvf HBgFZffO7+DbhC5Lk3z4z7YVNj6xh72fKRnwK8hUw3pd71EmwN149ocMX0qv9Lx9lRFm ccubKhnrmKy/WJmCeI9iRWUKlF2sX+EZ8YeoetAzYoaSHLIFh1umRPwrkATkc7GdoV3Q OIag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=MJ5m2FAV; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-121682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id x23-20020a17090abc9700b002a09c423a0fsi1727792pjr.146.2024.03.27.10.40.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 10:40:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=MJ5m2FAV; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-121682-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B9877B23BEC for ; Wed, 27 Mar 2024 17:18:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD4F914EC6A; Wed, 27 Mar 2024 17:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="MJ5m2FAV" Received: from xry111.site (xry111.site [89.208.246.23]) (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 5B23B14C598 for ; Wed, 27 Mar 2024 17:18:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711559882; cv=none; b=P9tHdhYs0EKyepLsbg4mX5czCTGkCiXdnqEH2lHe2s1HKIxmWA5/62UtXs2y9ibaYC2/N6XungzxVZUyMQWz3AWpDVCbOO3B9Y5VWetCymdk9FTgrT0UC2cfFg9cHj4PEbXYR2uJzAHogceozsZ7b0XGixGKbaFozYDKy7s69F0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711559882; c=relaxed/simple; bh=K6QrVU5PVZBLkr9lH/YmwLeLzn9IdrE/2j59eke5SYU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JMwepg+ps67+F592RQQYhLeEiN3mLd30Bm8Y6FONt/y/uR1IeaLzfVn6XARLC35VyrEY2VQGpYFSJ6zv0Su5Lhd8p0kTp+KIu2AObsI0LDVnljow3BUG19m44xPI/XwMMc1eXab8ykRGiZBFKonsCBzTM6cwA/IDNR6g27gzgm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=MJ5m2FAV; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1711559880; bh=K6QrVU5PVZBLkr9lH/YmwLeLzn9IdrE/2j59eke5SYU=; h=From:To:Cc:Subject:Date:From; b=MJ5m2FAV9u/mzXXtMzeWGZzANo+OjhHwThNa2yxCvRBi54qpU0YfGTeI2DIf4Q+jK DIHEaFeos/HcvAmQeU0VmEitjIlJzQ1PYa9X7vfjukXw1kVN54v2Ut2CYgMz1wCDL7 pxWjW/2W4y8ZK7MWvEtkJWkzq8sTnGvijThrHk9Q= Received: from stargazer.. (unknown [IPv6:240e:358:111f:6100:dc73:854d:832e:8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 3CE0266B9E; Wed, 27 Mar 2024 13:17:55 -0400 (EDT) From: Xi Ruoyao To: Huacai Chen , WANG Xuerui Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Tiezhu Yang , Xi Ruoyao Subject: [PATCH] LoongArch: Select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 Date: Thu, 28 Mar 2024 01:17:37 +0800 Message-ID: <20240327171737.27622-1-xry111@xry111.site> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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