From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 07796385800F for ; Wed, 31 Aug 2022 19:53:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 07796385800F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27VJhlIG005030; Wed, 31 Aug 2022 19:53:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=EtlUghXiKYj9BTq8UQD59l9UTWNZARVnhNhFdMSYmXM=; b=i+bloOzVY3YnPA+ehkFSyz/wo8KiznnT4SX+lRx4SoS8+WPCbLFjfs8ZMikooc/HDNw4 GsLYJ0u9qC0l/AWadi/v46NfklfP2XzN6lRBSYeMNrMIH0kNx8oFzZnltoVSZ4AnUJwY oq8vK1tYkEq8OKbAIQ7hv3nJ5uxZuHkPlqvRVPgvrrEdP5j7ffCev8msiCVr7nNQ96tV bSXZU3KOYna+FOUf1WZtuuw+6Jj+DF8G5uYC+16HU7pCkXzSPfKtU5EwPlAFtWYT1LV/ XXj6ixayIODFs5xclhI2eFwS1p6cCO4jSScYTZjtx8USwbcl86j+6v3XcblbTE3sGLqW cg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jae2287yp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Aug 2022 19:53:11 +0000 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 27VJioXW007590; Wed, 31 Aug 2022 19:53:10 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3jae2287yf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Aug 2022 19:53:10 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 27VJoDYM011912; Wed, 31 Aug 2022 19:53:10 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma03dal.us.ibm.com with ESMTP id 3j7awb3k9d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Aug 2022 19:53:09 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 27VJr8PF8454816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 31 Aug 2022 19:53:08 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E25E8BE053; Wed, 31 Aug 2022 19:58:44 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4EE23BE04F; Wed, 31 Aug 2022 19:58:44 +0000 (GMT) Received: from [9.160.4.32] (unknown [9.160.4.32]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 31 Aug 2022 19:58:44 +0000 (GMT) Message-ID: Date: Wed, 31 Aug 2022 14:53:07 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] rs6000/test: Fix bswap64-4.c with has_arch_ppc64 [PR106680] Content-Language: en-US To: Segher Boessenkool Cc: "Kewen.Lin" , GCC Patches , David Edelsohn References: <69277846-f587-b79e-f741-a2942d326778@linux.ibm.com> <20220831152412.GP25951@gate.crashing.org> <20220831160529.GR25951@gate.crashing.org> <16dc8d80-44d5-b739-b4a8-d02a01943d49@linux.ibm.com> <20220831192839.GT25951@gate.crashing.org> From: Peter Bergner In-Reply-To: <20220831192839.GT25951@gate.crashing.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 2Z_vU7SjW19PmVdiPE1oLtIinqkNxXJZ X-Proofpoint-GUID: fAhzj6Q9dAX_LkLUbH3Dk37WaC0VJnfc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-31_12,2022-08-31_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 malwarescore=0 suspectscore=0 adultscore=0 spamscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 clxscore=1015 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208310094 X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 8/31/22 2:28 PM, Segher Boessenkool wrote: > On Wed, Aug 31, 2022 at 12:00:14PM -0500, Peter Bergner wrote: > No. Instead, it just works! > > Try this: > === > typedef float vf __attribute__((vector_size(16))); > vf f(float x) > { > x *= 42; > return (vf){x, x, x, x}; > } > === > with -maltivec -msoft-float. It does not use the FPRs, and it does use > the VMX registers and VMX instructions. Well color me surprised! >> linux64.h:#define OS_MISSING_POWERPC64 !TARGET_64BIT > > That macro returns 1 on OSes that do not properly support -mpowerpc64. Right, but haven't the 64-bit Linux kernels been fixed forever to always save/restore the full 64-bit hardware registers on a context switch/signal? If not, them this whole thing is moot and the current behavior of disabling -mpower64 if we use -m32 later on the command line is the correct thing to do. > But we should not enable -mpowerpc64 on 32-bit Linux by default. I didn't imply we should do that. I was only agreeing with you that we should try not disabling an explicit -mpowerpc64 when -m32 is used later on the command line. I only meant to say is that the code in rs6000_option_override_internal() is what seems to remove the OPTION_MASK_POWERPC64 from our cpu mask when -m32 is used later on the command line... and that is controlled by OS_MISSING_POWERPC64. Changing OS_MISSING_POWERPC64 as I mentioned would not add OPTION_MASK_POWERPC64 to our cpu masks when -m32 is used. Peter