From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2075.outbound.protection.outlook.com [40.107.249.75]) by sourceware.org (Postfix) with ESMTPS id 492F13858D28 for ; Wed, 30 Aug 2023 12:57:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 492F13858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IvHYvoYyL0AgdZKME00vwDouP7h/NlMy7BP8xlIY2Q4=; b=pKhuRZCjGEH4xgwnvulM07nxY30gXqUoHmNLBzriZTxRvLSJi/70YGzMIsNqQF8NQQnctdfJY2d0j6oxDpVebZECIU1RwmaZ8i8YQUI64yRZAb5Qzjg1ANnB0vwz/MthpHmKNN6619VZn6dkKQUbBM5j0JJvr5GZelEljZIo04Q= Received: from AS8PR07CA0014.eurprd07.prod.outlook.com (2603:10a6:20b:451::11) by DU2PR08MB10038.eurprd08.prod.outlook.com (2603:10a6:10:49c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.20; Wed, 30 Aug 2023 12:57:01 +0000 Received: from AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:451:cafe::ca) by AS8PR07CA0014.outlook.office365.com (2603:10a6:20b:451::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.20 via Frontend Transport; Wed, 30 Aug 2023 12:57:00 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT028.mail.protection.outlook.com (100.127.140.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.20 via Frontend Transport; Wed, 30 Aug 2023 12:57:00 +0000 Received: ("Tessian outbound c99fbc01d472:v175"); Wed, 30 Aug 2023 12:57:00 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1ff87fc7bac8f287 X-CR-MTA-TID: 64aa7808 Received: from 54c318fa2c52.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4A6D6DC0-FAC2-4317-BA0F-0262D9EE3814.1; Wed, 30 Aug 2023 12:56:53 +0000 Received: from EUR02-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 54c318fa2c52.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 30 Aug 2023 12:56:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=laRSg47CrCKLFLOldezFs3XWk56+5vPyBEFW2YaqNCxJBsoueYfmvcviDSc+zagKF43Hx3N+nXfQ7bZSiOQW3yVR3LH2ffL9zl1Tn6pKYw4e75cs1+vcTa9KYD2PKP61g36YNB01GjBmz+yVpiP8RicBQHhGaV5TTMp1oRzMKxSsi9jVTHzLSLl3jMQdJYGfOrTZq+c1/pCl6Ic6SElCqnrXKYdRBpQMmZOsybVTf0W7eOZ2MWo8veF7fFzdmjUKqTVA525+DN/+uIzcwGgWp3HLsvgFO22E0oHkE9XKvM7+hoWCv8r/GbzPnYws1/N0x2vmRBBl32Yb2DvvmSw7Bg== 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=IvHYvoYyL0AgdZKME00vwDouP7h/NlMy7BP8xlIY2Q4=; b=VkvcJSUdFE8l/jX3EgdhsU5x7mClP0ptpyti4C0QWVHwwfU6Mq7S1aMfD7xfAd3PiXBhqHFR50TrbNWplW2d7sPLIMLCwKirqocSH7H1CpAFlYBblVXC6fCu2WdKDy6pWCQIk4UbhFGmAJD+kB3SteWvX2j1AqnmDrh8jDUo5Tnh2wDuEL5DXNlYr6TPZ8FL0M+hYibvjXunLWZLgD3f+43rEn6oSfT7zb9c+QtcEe7lOxOKdveoGnwjcBGIbdWgAAMU6DAfJ8J72TqY0tcb7hj9gNcTwiYO6vMON2LdOOflIjYWbVb869tZ2Sz/O28J1hhWa+3Neq7Jqeg6LHV66A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IvHYvoYyL0AgdZKME00vwDouP7h/NlMy7BP8xlIY2Q4=; b=pKhuRZCjGEH4xgwnvulM07nxY30gXqUoHmNLBzriZTxRvLSJi/70YGzMIsNqQF8NQQnctdfJY2d0j6oxDpVebZECIU1RwmaZ8i8YQUI64yRZAb5Qzjg1ANnB0vwz/MthpHmKNN6619VZn6dkKQUbBM5j0JJvr5GZelEljZIo04Q= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by AS8PR08MB7943.eurprd08.prod.outlook.com (2603:10a6:20b:53b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.36; Wed, 30 Aug 2023 12:56:52 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7743:60fe:4859:2df2]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7743:60fe:4859:2df2%6]) with mapi id 15.20.6699.034; Wed, 30 Aug 2023 12:56:51 +0000 Message-ID: Date: Wed, 30 Aug 2023 13:56:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 5/6] [gdb/testsuite] sme2: Extend SME tests to include SME2 Content-Language: en-US To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org References: <20230822112144.1513268-1-luis.machado@arm.com> <20230822112144.1513268-6-luis.machado@arm.com> <877cphl1mm.fsf@linaro.org> From: Luis Machado In-Reply-To: <877cphl1mm.fsf@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0436.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a9::9) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|AS8PR08MB7943:EE_|AM7EUR03FT028:EE_|DU2PR08MB10038:EE_ X-MS-Office365-Filtering-Correlation-Id: 38bece18-bb2b-47ba-106a-08dba9589a05 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 8dJU7URFtwnZmsqVR2YCgQbxYzK8zKxeJkVEKq2dhfRsJeIY47Tp7jBmmoWSfALHSg8Hpb4Zh47UI7jiPa76Vsb6LeyPzej+gm/zfXze0Ar5R01UduY8fG5VbwT/Xt3W8Vuz90mL7llSY5P/nDyAViieCjTI6AGHRiOgum3By9K+3SI0p06LBNIvd5rQV9PR1Xf0DxKP+6YRGYBjgblbD3uvcynK+FLvqStU1txoMIlL/zHaOdzyBkor/9ljN+9qh+nQJxZCMN4yH4r/JCy6ovC3litBbjvSB4tJaWz1tR0a2muXS1A9UgluxeY/7cl+4puLwIOJDCHaRBceF/tRRgSbqM91pf8puSAUQ0e6NxAmoXZRc8xBnthT2Pi1nRfOFf9gsvnhkNxf4/kFi2UV6ZAbjGdm66IYH1L0uQ4YU3+i32eBDdJWk0fxlRl+mQ8YGSNHG+ERnYxlZGtFXUueeJaDemE/WRpq6qgRRnc/NROH91BAoB/F6r0VjOgthgc9+6Gica8FsLREgKp0R96HZv8zvOJXW7BB/5aZpa74hV1me9HzyXHKCxj7i3a8NtBKQL1GTWYLJmhaJN4ORYO5SKxfT9tnYehbWPqyTxE7FotYzAFeb7Zb5LtHKRrF1qOkz9kSAeItwfdiZPMlOZutZA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3919.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(346002)(136003)(376002)(366004)(39860400002)(1800799009)(186009)(451199024)(8936002)(53546011)(478600001)(31686004)(6506007)(66556008)(66946007)(66476007)(6486002)(6916009)(316002)(38100700002)(41300700001)(6512007)(8676002)(5660300002)(44832011)(36756003)(83380400001)(2906002)(31696002)(2616005)(86362001)(26005)(4326008)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB7943 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 899d7a55-dedc-4ab4-0d63-08dba9589483 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tT3vsotch9n4kr/YV6R7lQBMSt1rbOVH34essyK5mHRmuzaaY9r3h+IsghAA9yN8AeOfdpWx0bKelbnIFGxzufuaa1OF52rIS9ACe6zgiYO34+SAp1iYU011BygH4OpSzZeECtyUQ7HRPz00mIB2y0hrXN9ywW5U8KfwdVCbMl4Ys+qTQlKxdB78oQU3Dgsfkq1DztZ1evO3OxlAN0X1zbi7/GpaZmxnYqL0TrsjvQYV3evJ3Digc5O6ScSqQ7YrKM2T+eHBKU7WgQQOAUKgMSYxZmVr68JC9GO/iVOmBVX1gEsmEKaevTzKFl37XJUc7yFFV71ud08XoYabpdKxFy5SLUidspOnOi5s3QwoJFDrMWHvraDOJMC4hFW+lPWv7zYs411EVoK1FscTg9QcGmT7upKJYKpidfrRTlIZDcExyvmQRyEXYw4rvymZSbNiMcFOlAFB/ZtOMjK1o9opTtdJT1URdhkC0OIjMxV83c6ZuNs6sDYx1CU00zgpWKWC8j0rTPIzGh+M3bjUO5jNbEJiSvcMJh0IpN6caDRfoKZpFJup7heKw3fEWH8B6p0MNk6k00LKq4t0m+3FYPf1QFhva6OnpKSNwE1XFAqOKXHeyFrcLL7yJH6c1b052ueWzUn935b0P7wU6u3swkjla/99GEGMLhBXLRgHNI02qIeo4yL5hicqtpHR4giArAV4Odqk8jRn2f4gBjHyUU4gF3DbGS9EOx0FP9Ph0WpBOlLX90LTQlr7NsephI4atNyh X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230031)(4636009)(396003)(39860400002)(346002)(136003)(376002)(186009)(82310400011)(1800799009)(451199024)(46966006)(36840700001)(31686004)(356005)(82740400003)(6486002)(6506007)(6512007)(36756003)(86362001)(81166007)(31696002)(40480700001)(47076005)(36860700001)(2616005)(26005)(2906002)(336012)(53546011)(83380400001)(478600001)(70206006)(6862004)(8676002)(70586007)(4326008)(8936002)(44832011)(41300700001)(5660300002)(316002)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2023 12:57:00.8671 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 38bece18-bb2b-47ba-106a-08dba9589a05 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB10038 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY 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/27/23 02:23, Thiago Jung Bauermann wrote: > > Luis Machado writes: > >> diff --git a/gdb/testsuite/lib/aarch64.exp b/gdb/testsuite/lib/aarch64.exp >> index cd43a4c4f77..40bba861b5f 100644 >> --- a/gdb/testsuite/lib/aarch64.exp >> +++ b/gdb/testsuite/lib/aarch64.exp >> @@ -151,3 +151,56 @@ proc check_fpsimd_regs { byte state vl svl} { >> gdb_test "print $register_name" $fpsimd_pattern >> } >> } >> + >> +# >> +# Validate the values of the SVE registers. >> +# >> +proc check_sve_regs { byte state vl svl } { > > This is a duplicate of the same function in aarch64-scalable.exp. It > seems to be included here by mistake. > Oops. Missed removing that entry when I split aarch64.exp. Removed now. Thanks for the reviews! >> + >> + # If streaming mode is enabled, the vector length is the streaming >> + # vector length. >> + set z_pattern "" >> + set z_size 0 >> + if {$state == "ssve" || $state == "za_ssve"} { >> + set z_pattern [string_to_regexp [1d_array_value_pattern $byte $svl]] >> + set z_size $svl >> + } else { >> + set z_size $vl >> + >> + if {$state == "fpsimd" || $state == "za"} { >> + # If there is no SVE/SSVE state, the contents of the Z/P/FFR registers >> + # are zero. >> + if {$vl == 16} { >> + set z_pattern [string_to_regexp [1d_array_value_pattern $byte $vl]] >> + } else { >> + set z_repeats [expr $vl - 16] >> + set z_pattern [string_to_regexp "{$byte , 0 }"] >> + } >> + } else { >> + set z_pattern [string_to_regexp [1d_array_value_pattern $byte $vl]] >> + } >> + } >> + set p_size [expr $z_size / 8] >> + >> + # If there is no SVE/SSVE state, the contents of the Z/P/FFR registers >> + # are zero. >> + set p_byte $byte >> + if {$state == "fpsimd" || $state == "za"} { >> + set p_byte 0 >> + } >> + set p_pattern [string_to_regexp [1d_array_value_pattern $p_byte $p_size]] >> + >> + for {set number 0} {$number < 32} {incr number} { >> + set register_name "\$z${number}\.b\.u" >> + gdb_test "print sizeof $register_name" " = $z_size" >> + gdb_test "print $register_name" $z_pattern >> + } >> + >> + for {set number 0} {$number < 16} {incr number} { >> + set register_name "\$p${number}" >> + gdb_test "print sizeof $register_name" " = $p_size" >> + gdb_test "print $register_name" $p_pattern >> + } >> + >> + gdb_test "print \$ffr" $p_pattern >> +} > > Reviewed-by: Thiago Jung Bauermann >