From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 535FC3858C83 for ; Wed, 1 Mar 2023 13:45:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 535FC3858C83 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ibm.com Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 321DAofX013533; Wed, 1 Mar 2023 13:45:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=pp1; bh=d4V/mS1C3E0sRNVxJI1NoqNvEk7QwClN03nUxs/AYGA=; b=OX7Jn+sbIoOZQN1XKiNao7/Sd1cVGYk/eWYHObI5Kzw2OiL5uRtu81iig3xyLLaGOvX8 j3yDbWLTnzCreY9x3pVyOlh2YKdF4spPoe2DfpzW07ZySFaQxX0SkurQ85ABonok2XPa Q1oJaKQm7/65uvNiWG3gKqu7EP7Dx+qVGjrZSt+fQu6k8PhV4lyIIXskAum9ryYncIev zAT+4VA7REuPFr/OrmPzQ1gqsRFL4UQ21lrToPx5DANNhob/vVYigpo+N5IhP0IXx788 QPpZJEwH4qwocqFKIOc3J1JnI261x/oeAInob5CJfYp3k4rzj0HYqHUROl9hua7Sq2kO rw== Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3p277as7n0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Mar 2023 13:45:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j2Il+L3wgmfpfTZa2ILOw/OB0YGE08qFdOr9szUZqMrVjD6itpI7JKn7XticrJCedfdqpV2MT1iev3zFahOAdPW3PeX4qsqXoqjYo90ztp7m2aq3ZdbZ3SGTSOSc/tYlYjvxZMiWIdm43IV4h5LIGs7EtoGpFk3KLH93vzmJPBpHAmgFW8vFK4z2RqJxXPUXgn/94bJxDAyjCDPJxCOcpCqaeSb490Sf00beTDAoZBIZa018zg8qNn2V4lz3O7SeXWc4lV3oXF2uLm8O7URuv3jt9W2pbXDh2vRhk+plqGMQ/4sPg2OPorVOgtIY58UWTl7lnOUo1QS70be6v6M/Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d4V/mS1C3E0sRNVxJI1NoqNvEk7QwClN03nUxs/AYGA=; b=Sb1GE6/Z+8cp2Pr75eZ20y5IuIm4zNUSTcZL4h6q3JC9hULrbQCiC9QS4aYWRgK5Ca4kRPX/5E5R8cnDcWu+/Rh5jDbMhgcqzGjBTI+dBOQOGHlGI4/zfWT7+r0AwVwMZKDsJvczWm8SGsS5mdrkmXtbrXtqKRj3+84kkhzs4/kakV/+IV2gdY28UcZ4kb8knjiPu/vU/Fump6WwDerMcHo8HXG2dVHRT+7zgRcXU0GWLBJJrW4NvAs5jvVA/ftwdZ2SrDN6jAFTD9yf7NQe0HWdT0tkwJCD/dEwegouCAXiHuXjQ3pMBygbRScLhjG2E+P1AZ/Gg/+etkq0OiaXQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ibm.com; dmarc=pass action=none header.from=ibm.com; dkim=pass header.d=ibm.com; arc=none Received: from CH2PR15MB3544.namprd15.prod.outlook.com (2603:10b6:610:5::26) by SJ0PR15MB4375.namprd15.prod.outlook.com (2603:10b6:a03:370::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.18; Wed, 1 Mar 2023 13:45:47 +0000 Received: from CH2PR15MB3544.namprd15.prod.outlook.com ([fe80::cb98:8c4d:b2e2:c281]) by CH2PR15MB3544.namprd15.prod.outlook.com ([fe80::cb98:8c4d:b2e2:c281%6]) with mapi id 15.20.6156.018; Wed, 1 Mar 2023 13:45:47 +0000 From: Aditya Kamath1 To: Ulrich Weigand , "gdb-patches@sourceware.org" , "simark@simark.ca" CC: Sangamesh Mallayya Subject: Re: [PATCH] Modify altivec-regs.exp testcase for AIX Thread-Topic: [PATCH] Modify altivec-regs.exp testcase for AIX Thread-Index: AQHY35+KSPZnVPeA+0GqY8Olv5cbLK4N1wYAgARSSX6AADUvAIAC4ZCZgMgLTNCAAcErgIAHubFb Date: Wed, 1 Mar 2023 13:45:46 +0000 Message-ID: References: <29b4cea4c1b387f0d85e278f565dc084125f041d.camel@de.ibm.com> <335276edcab44fa815becb01418b24e2bc87b0bd.camel@de.ibm.com> <9297ef8ccad3eba35f58f23e9abcd656daa65d0e.camel@de.ibm.com> In-Reply-To: <9297ef8ccad3eba35f58f23e9abcd656daa65d0e.camel@de.ibm.com> Accept-Language: en-IN, en-US Content-Language: en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH2PR15MB3544:EE_|SJ0PR15MB4375:EE_ x-ms-office365-filtering-correlation-id: 5a99f7b7-dac7-49b0-f69f-08db1a5b42e0 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 9MsWaUdNasJ+jogMbFpdrrIqoBJv7Gr5DtgPrLdMIa+fh1IYDZTzjjlRB9Ghm7A6YyRzrajep3KdMBioYn+jNyGl7Ow6bY79p+bwSjGVecWxXHZNK3pBNEUa+vC1GREsY03g4Bgw1GQDVzWe3j1Mp+ZWawgL1yD6XTdEukrokqW0OiqGo7Pi+H8iWpqu8NQWlvbmvwyxpejq2WJUnjUhkpjGn0ZVmqzLYyHHROzDV0b+gmILH2MsrP1engsq+JZ6m8n3Ash2/c1KfXtiebECl8ckjohqm4U6pupRcKzaAJMzpypKzvff/wHuLkBXJ/DRTiOJi5N5IN7d6MpBe60uDSIe1pGm2jYxk7WH+3l4U8hV3gmmFdRUxD8MDGkk5B7O7YJQn2s54LFg9b4arLMbnSwcoVbtvkleeJOuHJT2fSg7/pPn3809v3mRHletOc3HT5com80CTtranaHn0BlH9i1VJHjnhyw9/2UrRRej95NcV0W7z/pE+OBSCDp2juUbdRGAxLccyIP05No7YDB4tg9E/BLYDhO89Hnc+/9xYvcaWGIPgmrlSSAIGnmYsZTAG5JWrZDILhMXh4qpG8K1OePFNExHtheijBdkSu1wjJaJMkFbYGDJdkYJ4RifAuTds0etMKRv5crWo6/7g2fv5b/5amzkSOPzBsoV2LO9KLF5TxHYlsWs0D9irzg/GROoc5nyxIxgzmKv+A1lIEuV+g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR15MB3544.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(366004)(39860400002)(346002)(136003)(376002)(396003)(451199018)(122000001)(66476007)(66946007)(38100700002)(4326008)(26005)(6506007)(186003)(53546011)(64756008)(66556008)(91956017)(8676002)(5660300002)(478600001)(71200400001)(2906002)(76116006)(8936002)(7696005)(110136005)(52536014)(9686003)(33656002)(55016003)(86362001)(316002)(83380400001)(66446008)(41300700001)(38070700005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?btUkWsvL3o6awQ4IEqeq5s3mNyMGroErxaAYV5NY6RIwVx++c3M6UBRbQ/jB?= =?us-ascii?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HnndBGHawwvbFYweumjvGdtl9Df+2J1jTiL+a?= =?us-ascii?Q?TW/YVRNMs4RmihXB89mSAONkcfz5HcBFvHP0fCeGdlZy7x43qnWsJIv/KzbL?= =?us-ascii?Q?79sRgFtX/wdssOBEVCAOtXKbYcGZtD1dkJ5oa02cRREPlN+U1UgxDnrwmlA9?= =?us-ascii?Q?yVaFzwommlGDgLIQSzoEElr2t/oqVx9BggA4GWAM2JDaju81eZ5s3zStmXgD?= =?us-ascii?Q?PTKJ57hRSq7/uNv2vnqm7GmxP+uzN0nnnQ3BDeNb5TIajIy7iKF9Y8aH4nbd?= =?us-ascii?Q?JSCdm1+q7aGWtQyytTJRM2+jnNTLHV205U0UfLrOfP07Wmrr9nvuCouTKJzL?= =?us-ascii?Q?mT7wPOOQY8M7VqfwCJiuspkvtIHtg+q+UEPrWlNwyi552skAVuLmg1SMz/+c?= =?us-ascii?Q?/4xmAys/INfA/G3icWm97VsFNX0jQ5Q5gTOvLosZGW9bONffLOtlkwVYmJlB?= =?us-ascii?Q?us0bx3N7xWYHxkJcxmpwTl1cJqC0+IawvybEe9sCpRomsFxIQPOi1qXi0men?= =?us-ascii?Q?2+6OwGEcaTz5FQIrC0EwigBs2k2qSmo3OD7t59Hp0sBqQGVs93uejgrSBtd2?= =?us-ascii?Q?zWuCYVcNMWEBwSwRzGrnC1FTGowI9jBZTi3fmnxsjIvUYAnc34rUVu5wnwyK?= =?us-ascii?Q?iqt1ScY/J6r/J1HkDKW8XXdv5VsO3dIlvoNDbVqCOR2rMaZMoMi3NYg6fIXS?= =?us-ascii?Q?xQ=3D=3D?= Content-Type: multipart/alternative; boundary="_000_CH2PR15MB35448D621C1FBDE1AD65268CD6AD9CH2PR15MB3544namp_" MIME-Version: 1.0 X-OriginatorOrg: ibm.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR15MB3544.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a99f7b7-dac7-49b0-f69f-08db1a5b42e0 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2023 13:45:46.9130 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fcf67057-50c9-4ad4-98f3-ffca64add9e9 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5v4uA/rDlMAZnClSF/cmS04LE5txvUp6JnNlY86HA6gSqCJkgAGGdrQGn9V9aHpt9dm/4EyHBn9h2ZkgV7r8Cg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR15MB4375 X-Proofpoint-ORIG-GUID: cIhlcI0dfaEzZEuQRh2Vyi-fK_sQrOMY X-Proofpoint-GUID: cIhlcI0dfaEzZEuQRh2Vyi-fK_sQrOMY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-01_10,2023-03-01_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 priorityscore=1501 clxscore=1015 spamscore=0 phishscore=0 bulkscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303010113 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,SPF_HELO_NONE,SPF_NONE,TXREP 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: --_000_CH2PR15MB35448D621C1FBDE1AD65268CD6AD9CH2PR15MB3544namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Ulrich and community, >I think it would be preferable to instead extend the >test case (when compiled on AIX only) by adding some >other instruction early in main, but before that >assignment to x, that touches a vector register, >and then perform the GDB register tests after that >new instruction and before the assignment to x. So I do not have the knowledge to do that. I had seen the align-c test case= which uses a tcl script and can do the same. However in .exp file how can = we do it? Do you have an example which I can look into and learn how to doe= s it, anything different also is fine. Kindly let me know. It will be of he= lp to me, to contribute the same. Have a nice day ahead. Thanks and regards, Aditya. From: Ulrich Weigand Date: Friday, 24 February 2023 at 9:07 PM To: gdb-patches@sourceware.org , Aditya Kamath1= , simark@simark.ca Cc: Sangamesh Mallayya Subject: Re: [PATCH] Modify altivec-regs.exp testcase for AIX Aditya Kamath1 wrote: >Kindly review the patch in the previous email which changed >the altivec-regs.exp so that AIX folks can also use this while >in development. We are currently working on this feature. This still needs at the very least more comments. Note that the existing comments in the test case specifically say that this test *wants* to verify that VRs can be written before they were ever used - which works on Linux but apparently doesn't work on AIX. Your patch changes this, but doesn't change those comments, which makes the resulting test confusing to read. Also, as a functional concern: you now execute the GDB commands to modify vector register *after* the line x =3D ((vector unsigned int) vec_splat_u8 (-2)); was executed. If the compiler chose to hold the value of x in a register at this point, those GDB commands would clobber the value of x, causing subsequent execution to fail. While this might happen to work with the executable produced with the current compiler and/or settings, this is not guaranteed. I think it would be preferable to instead extend the test case (when compiled on AIX only) by adding some other instruction early in main, but before that assignment to x, that touches a vector register, and then perform the GDB register tests after that new instruction and before the assignment to x. Bye, Ulrich --_000_CH2PR15MB35448D621C1FBDE1AD65268CD6AD9CH2PR15MB3544namp_--