[{"id":3674845,"web_url":"http://patchwork.ozlabs.org/comment/3674845/","msgid":"<b81ace42-4783-47a4-9440-e369385a451f@linux.ibm.com>","list_archive_url":null,"date":"2026-04-08T16:25:00","subject":"Re: [PATCH] rs6000: Add -mcpu=future support and built-in gating\n infrastructure","submitter":{"id":88474,"url":"http://patchwork.ozlabs.org/api/people/88474/","name":"Surya Kumari Jangala","email":"jskumari@linux.ibm.com"},"content":"Hi Kishan,\n\nOn 08/04/26 4:30 PM, Kishan Parmar wrote:\n> From: Kishan Parmar <kishanparmar@ibm.com>\n> \n> Hello,\n> \n> This patch introduces support for the -mcpu=future option, intended to\n> enable experimental processor features that may or may not be included\n> in future Power processors. The option serves as a placeholder for\n> development and evaluation purposes, and may be renamed if a\n> corresponding processor is defined.\n> \n> In addition, this change adds support for gating rs6000 built-ins using a\n> new target predicate \"future\", corresponding to -mcpu=future. This\n> extends rs6000-gen-builtins.cc and rs6000-builtin.cc to recognize\n> [future] as a valid predicate, allowing new built-ins defined in .bif\n> files to be conditionally enabled.\n> \n> Bootstrapped and Regtested on Power10 little-endian system, using the\n> --with-cpu=future configuration option.\n> \n> 2026-04-08  Kishan Parmar  <kishan@linux.ibm.com>\n> \n> gcc/\n> \t* config.gcc (powerpc*-*-*): Add support for supporting\n> \t--with-cpu=future.\n> \t* config/rs6000/aix71.h (ASM_CPU_SPEC): Pass -mfuture to the assembler\n> \tif the user used the -mcpu=future option.\n> \t* config/rs6000/aix72.h (ASM_CPU_SPEC): Likewise.\n> \t* config/rs6000/aix73.h (ASM_CPU_SPEC): Likewise.\n> \t* config/rs6000/rs6000-builtin.cc (rs6000_invalid_builtin): Handle\n> \tENB_FUTURE and issue diagnostic requiring -mcpu=future.\n> \t(rs6000_builtin_is_supported): Return TARGET_FUTURE for\n> \tENB_FUTURE built-ins.\n> \t* config/rs6000/rs6000-c.cc (rs6000_target_modify_macros): Define\n> \t_ARCH_FUTURE if -mcpu=future.\n> \t* config/rs6000/rs6000-cpus.def (FUTURE_MASKS_SERVER): New macro.\n> \t(POWERPC_MASKS): Add OPTION_MASK_FUTURE.\n> \t(rs6000_cpu_opt_value): New entry for 'future' via the RS6000_CPU macro.\n> \t* config/rs6000/rs6000-gen-builtins.cc (enum bif_stanza): Add\n> \tBSTZ_FUTURE for future.\n> \t(write_decls): Add ENB_FUTURE in bif_enable enum of generated header\n> \tfile.\n> \t* config/rs6000/rs6000-opts.h (PROCESSOR_FUTURE): New macro.\n> \t* config/rs6000/rs6000-tables.opt: Regenerate.\n> \t* config/rs6000/rs6000.cc (rs6000_machine_from_flags) If -mcpu=future,\n> \tset the .machine directive to \"future\".\n> \t(rs6000_opt_masks): Add entry for -mfuture.\n> \t* config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mfuture to the assembler\n> \tif the user used the -mcpu=future option.\n> \t* config/rs6000/rs6000.opt (-mfuture): New option.\n> \t* doc/invoke.texi (IBM RS/6000 and PowerPC Options): Document\n> \t-mcpu=future.\n\nPlease add information about the new tests to the changelog.\n\n-Surya","headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=L7ycowe8;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=L7ycowe8","sourceware.org;\n dmarc=none (p=none dis=none) header.from=linux.ibm.com","sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com","server2.sourceware.org;\n arc=none smtp.remote-ip=148.163.158.5"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frT2L4tvnz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 02:25:45 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 4C2D54BA2E16\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  8 Apr 2026 16:25:43 +0000 (GMT)","from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\n by sourceware.org (Postfix) with ESMTPS id D8B874BA2E04\n for <gcc-patches@gcc.gnu.org>; Wed,  8 Apr 2026 16:25:11 +0000 (GMT)","from pps.filterd (m0353725.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 6384snsv2212543; Wed, 8 Apr 2026 16:25:11 GMT","from ppma12.dal12v.mail.ibm.com\n (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dcn2hg9j0-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Wed, 08 Apr 2026 16:25:10 +0000 (GMT)","from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])\n by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 638BivEi026707;\n Wed, 8 Apr 2026 16:25:10 GMT","from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68])\n by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dcmg8023g-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n Wed, 08 Apr 2026 16:25:10 +0000","from smtpav03.wdc07v.mail.ibm.com (smtpav03.wdc07v.mail.ibm.com\n [10.39.53.230])\n by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 638GP70Q66453806\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Wed, 8 Apr 2026 16:25:07 GMT","from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 1D6B258054;\n Wed,  8 Apr 2026 16:25:07 +0000 (GMT)","from smtpav03.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 239C45805C;\n Wed,  8 Apr 2026 16:25:03 +0000 (GMT)","from [9.124.215.3] (unknown [9.124.215.3])\n by smtpav03.wdc07v.mail.ibm.com (Postfix) with ESMTP;\n Wed,  8 Apr 2026 16:25:02 +0000 (GMT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 4C2D54BA2E16","OpenDKIM Filter v2.11.0 sourceware.org D8B874BA2E04"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org D8B874BA2E04","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org D8B874BA2E04","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775665512; cv=none;\n b=YM2u89qr7OSh3nq33B2ythkuCRzeYVYGPaDGLxwn7On3vfKXq08Hbh2iE9VwTOfDqYjRaysPQ5hSsTx/ttI1EwS8jKWWkpUTGYHY5piFM+Ib4C4LJjnefxXx9428EOZLpA9tNqIVbVg3KKhBaCi041HT/iW7RT1ayTvXc0TtsY4=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775665512; c=relaxed/simple;\n bh=3lxKW5vmZ01qZ2WB2QapRTQ6ZuxxcmaOb+Mhy28SlW0=;\n h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;\n b=TZuqkHou3nHBdSKH0jdBY5HzNh222jHXR157tumN7xAGmKZAVsZL/C7+icsz8LxxUw/ocy3dDjamrVt+1NpDopQWkMz/sALI6CpHKm3rMgz1xmA6fY0wRQMGkl6sozxYgCSdYVdga7UdrCaMOKQQEe/+k1nGA62gtiRtzPy82YA=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:content-type:date:from:in-reply-to\n :message-id:mime-version:references:subject:to; s=pp1; bh=4ph+6j\n U+sKKW5OV4AwmKRlp+U8YNBr1YYryMyRKoGyw=; b=L7ycowe8s7eBVw/5aqvunH\n ctP8Vhu/t1IcAnVIEhKG7/RNhdvV7fiTZT0sLfaX/YGdi/+edU9Q79v/+4NV4OB9\n MT4HDMlkCyD+KaNyIAnT3fAyOKtwaFQly1fwDTk8GMmVA0oY7udcOE6dz+41sOMM\n nja9VDSOeEafSEViSUieMCEVlgi0wuE+LrxkpGzb84wzctMLpsXlYvQzI1IBkV6I\n WboD2ImASFdl/oOjx0OsH1lr/KwYyC5nIZfns00tEHsi37tEVkWpEMGsyScPQgr5\n mgrL0ZMdcjEE7euh6uuOaCTO9qKUMo9rYvlRnIph3PekebO2gAZSTwcFJBStgEoA\n ==","Message-ID":"<b81ace42-4783-47a4-9440-e369385a451f@linux.ibm.com>","Date":"Wed, 8 Apr 2026 21:55:00 +0530","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Subject":"Re: [PATCH] rs6000: Add -mcpu=future support and built-in gating\n infrastructure","To":"Kishan Parmar <kishan@linux.ibm.com>, meissner@linux.ibm.com","Cc":"segher@kernel.crashing.org, mmatti@linux.ibm.com, gcc-patches@gcc.gnu.org,\n avinashd@linux.ibm.com, vijay@linux.ibm.com,\n Kishan Parmar <kishanparmar@ibm.com>","References":"<20260408110026.3841268-2-kishan@linux.ibm.com>","From":"Surya Kumari Jangala <jskumari@linux.ibm.com>","Content-Language":"en-US","In-Reply-To":"<20260408110026.3841268-2-kishan@linux.ibm.com>","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"7bit","X-TM-AS-GCONF":"00","X-Proofpoint-Spam-Details-Enc":"AW1haW4tMjYwNDA4MDE0NiBTYWx0ZWRfX9iz+1xRQwtjr\n 2iKVksUmks2fBKhFYPzapItRLOCVCSwrBvTSYMX+hTSKCVgouIyxrtEEoJmGAwzDbU2/YF66Zpi\n WScPgyY1YqiyIaEn0EP9zptvG8QbXUnnz91RPIVQuj06CjitI58wvmw8GK6O5X2CQaXZJ3+Plof\n lLpIgtr1XKamm4ZyMXmV7abXexEmm8x4tZPGQEGIIsFcEluFGe1cUuQ/xJSJG3j2T8wJoPAZZip\n S1be4EBGkIzEWGXsbRFiB/tta0Y9+DkvV0ypr5vSjsTpSZISfu3z7GBTzp5ZZvYeIekuvB5qzzl\n q1VS08ZgQfvggPJAVCmVJ1SdvZcSkI04ZYnv7Xpca7s7qJ7PMzAkwarzEZhyLrfQ3uSChfOHups\n 7CaCaVAdHNpe0tUiiMwYEcWHlUIwmFhAc0H0eY1WL0sX5PoEAhlsf4a7Oin98PYyHN87jsKkYns\n OQ9CcW/E9QaTPM0XavA==","X-Proofpoint-GUID":"3OXnpRw25syW3lhMyMtz2Sv29L3QdWYg","X-Authority-Analysis":"v=2.4 cv=a/wAM0SF c=1 sm=1 tr=0 ts=69d68166 cx=c_pps\n a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17\n a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=VnNF1IyMAAAA:8\n a=JxMw-b5MtVz0aYX3st8A:9 a=QEXdDO2ut3YA:10","X-Proofpoint-ORIG-GUID":"3OXnpRw25syW3lhMyMtz2Sv29L3QdWYg","X-Proofpoint-Virus-Version":"vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-08_04,2026-04-08_01,2025-10-01_01","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n bulkscore=0 clxscore=1015 spamscore=0 impostorscore=0 priorityscore=1501\n phishscore=0 lowpriorityscore=0 adultscore=0 malwarescore=0 suspectscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604080146","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}}]