From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6440A1F5AE for ; Wed, 26 May 2021 10:24:57 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C482384F01F; Wed, 26 May 2021 10:24:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C482384F01F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1622024696; bh=Yo5t6GsYPnur3tGbVmeaJ1gfEAlfiOMV/fc0wmGVM6I=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=tnlhlJTo6jpeTeHCU79L6eDlZQQeKGwJOciwhGKMgej8baFfwpUmVZWQ4f9tztyqa HVYLyCsGq5DNA+8uQsstk04FlHS87vyJGFvj0+UOMjz+4CGJeVez4iu6Hl/OaDIWL2 Yhcv7f4Zs2fBAPxBLf2nCjkotsiOZh8nGNereMhI= Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2050.outbound.protection.outlook.com [40.107.21.50]) by sourceware.org (Postfix) with ESMTPS id 3E70F384F01D for ; Wed, 26 May 2021 10:24:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3E70F384F01D Received: from AM4PR05CA0003.eurprd05.prod.outlook.com (2603:10a6:205::16) by DBBPR08MB4760.eurprd08.prod.outlook.com (2603:10a6:10:f6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.21; Wed, 26 May 2021 10:24:50 +0000 Received: from AM5EUR03FT023.eop-EUR03.prod.protection.outlook.com (2603:10a6:205:0:cafe::a) by AM4PR05CA0003.outlook.office365.com (2603:10a6:205::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Wed, 26 May 2021 10:24:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; 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; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT023.mail.protection.outlook.com (10.152.16.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Wed, 26 May 2021 10:24:50 +0000 Received: ("Tessian outbound 3c5232d12880:v92"); Wed, 26 May 2021 10:24:50 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: c3b3206218b0f24f X-CR-MTA-TID: 64aa7808 Received: from 049be21bb428.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 9A662D8F-6547-47FE-A08D-A08D25CF54A9.1; Wed, 26 May 2021 10:24:43 +0000 Received: from EUR01-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 049be21bb428.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 26 May 2021 10:24:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KbJJEt8jpjEBTBP23JYCMCaOEnwiZToZFmqyxhY5pz1RANl2CeEsj3abuNBSHoz1qiwDmddXOWHxllfnQto0S1eKTwlo3uxBBdLs2FAsrzsmSuIYW01W6J/95TrUcFPNfz3b2pgmYxkc0QJMAl4/6vJn8Hp8nmguaF7jafsISsVwHhSuu6BqoReTRURgKlDPfyEDKyA0/r+oJIM/y3WzcBIHlAxhxl81xHw6aBu2M6q0FVXV1lehYw7xZUOriQIRLeW7Vy8l/IZjfOZUmiGTC4kwGLxFYCJaCSH7pIBLJhU0w1Yf5Of9jK7tIKEarl0cLMFge1Uf2c7feUV/h+0NGQ== 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-SenderADCheck; bh=Yo5t6GsYPnur3tGbVmeaJ1gfEAlfiOMV/fc0wmGVM6I=; b=efCEXH104E6HHgfnVe65ZviP89DupnvczQuqyoV7ILk4UrDM9I1RykZ0EWTEKHOqUNIIv8517ntpvSzZgsy/sYu+2IsS9fecld0Sju/S50g4nhyxHKhdgjfuQVD9wO3DtK0NrcVOCrOQiLywN/1TOkXuUZKSWlX1dBYuKKSckZDr2VkRkPlaf+RVu4i2mUaML79wP2ay/Ts/9YXatf5zAOj+K2aR58FSklWwH8Mf82wFmoFJOM/FtGUct9kqQwsWjdaC3dqP1534E3a1Ew/eR3Gl3tn91uVqpRbIpGvkEEbcvd5P5yrgpysrUK7olob/KMg0u890L4mf+6P2qFSgEg== 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 Authentication-Results-Original: fujitsu.com; dkim=none (message not signed) header.d=none;fujitsu.com; dmarc=none action=none header.from=arm.com; Received: from PA4PR08MB6320.eurprd08.prod.outlook.com (2603:10a6:102:e5::9) by PAXPR08MB6910.eurprd08.prod.outlook.com (2603:10a6:102:132::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.27; Wed, 26 May 2021 10:24:42 +0000 Received: from PA4PR08MB6320.eurprd08.prod.outlook.com ([fe80::c99f:671d:bb2c:f20b]) by PA4PR08MB6320.eurprd08.prod.outlook.com ([fe80::c99f:671d:bb2c:f20b%7]) with mapi id 15.20.4173.022; Wed, 26 May 2021 10:24:42 +0000 Date: Wed, 26 May 2021 11:24:39 +0100 To: Naohiro Tamura Subject: Re: [PATCH v2 5/6] scripts: Added Vector Length Set test helper script Message-ID: <20210526102439.GB9028@arm.com> References: <20210512092922.901289-1-naohirot@fujitsu.com> <20210520073437.931585-1-naohirot@fujitsu.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210520073437.931585-1-naohirot@fujitsu.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [217.140.106.55] X-ClientProxiedBy: LO2P265CA0162.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::30) To PA4PR08MB6320.eurprd08.prod.outlook.com (2603:10a6:102:e5::9) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.55) by LO2P265CA0162.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Wed, 26 May 2021 10:24:41 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9db15f1-75de-499e-00ea-08d920307eb8 X-MS-TrafficTypeDiagnostic: PAXPR08MB6910:|DBBPR08MB4760: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:2449;OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: l8zEllAJqr8RidMbidxvA+3DCM7swvR6+HoaJLC4+bdLX7ll1dAopddZUpQNhXLEqC+tmjkFiRYXBE5M+iNb1FD6WJNqU9axmPy7D0SQYOZ4LPiOdZBnt1Z4bBZIhzIyWfjZzLSj4T16qzuaB7upgvM9p/3i95By72R0pf1X4VwVuy0kZIpIOJ4ydUqH+KGpSxzGc0UmENMxAfrpBzzTdOuaiRUJuejFM0UDhGxu4k428HMJHmYBGC8vJpa26r4iKAMqqeJ4B+Fxn76Ijygn7ZnAsotmuAtSpgKPRagFcg0t26eYjP6u7TMsRBMk477T7TGus8KKAMlw2BV57MIxhdvmdjnt88F94YcnznjylhcvKygIWNIZWfKSNZwH3dm+byNRArqtYP38fTxGMmP7mFhytsOxqY8NjW/WxAxCcL2HskJlZY+KC3XDHddxBYHDxtS6yBP2WDu+u8uq4a16Zt3xOONqYnPWBYiQZmYjjpcaGKt8DPLAwPB1rAWNrT4exlvOZ0LtyP3XFiVSxTiHu9RUdt2Bun/ww0IQg+Y9a+2oGawCDjBjMzfaYqY1OfJI3bo7zAEaYba+udY+FnYsW1rBYbsrUDMPI7hbStOMLnxqtUC1MKqvhbAz1XJa80djAKRvlu+aTh+EJ3ihtACJTfXZOMPYPuNTm0RqygIm5haWuNLYIGyZqeMiJ0oB5O5xw5MmzPNnEbyRjinz2R+ta1WHSTwr1mC7vPSuQwo3UVhC7RZbv2LkbdjWS0BVzFBUnlcl5nQps5pVqSj7I+0zkt5PnpWfOpUY3wEpU/XOc3k= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PA4PR08MB6320.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(396003)(376002)(346002)(136003)(316002)(38350700002)(956004)(36756003)(186003)(38100700002)(52116002)(7696005)(8886007)(86362001)(33656002)(8676002)(55016002)(16526019)(83380400001)(5660300002)(6916009)(26005)(66556008)(4326008)(2616005)(8936002)(478600001)(66476007)(2906002)(66946007)(44832011)(1076003)(2004002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?UE1mL1k0VUhUQzU5UHpOVXY5K2xMUnpPU0daN2ZOeGsrck1SdjF5VlF2QlRh?= =?utf-8?B?Tlg3d1dxb1BiL2dTd0pEaUVGd3pJUE00cy9OMmJkL2l3aHhMUlA4VG16NktZ?= =?utf-8?B?OUhXdHpoSFFCZDNuZ3Y3TXZqcTZsaWp5Nk95RGp6QXU1dzJJYWhCUGpkeEcx?= =?utf-8?B?QnRncTFjeUQ0UkkzYWtFR1JkODYzb09uc0RXRXA2ZmdqMGZwOTUxaGhxUFZG?= =?utf-8?B?TnBKQjRlcUQ4Q0pBNzVIOWtObjVMZGdyeUI0TWN6aVNHUUcvRkJGajMyUTZY?= =?utf-8?B?VlpVYW9nNkxWNVFDbHN4THQ3T2g5M1BrMDhUY3kvcWpZNUltYmViZlVqb0tQ?= =?utf-8?B?dnN2WkdaeDNRT3V4ZlhDNUhVK0NTckFJL0VZbEVIbDFxNmlsWUtvMlg1bHhh?= =?utf-8?B?WURwajdQeGt6YlJnakp3YWkyNEl2b1VVRzdhNGZDQ3RDZzM1UHhKNkpBdGdy?= =?utf-8?B?ZmhpY3N2Q3pwN0JqQkpCRUJZdUNteGRUa1pweU5kWS9xWnM3aGhNZURZcU8x?= =?utf-8?B?Zk5UMlhLM0RaL2tMY1k5Y3dmd050VGsrK2lxUURCdXhRY2g5ellqRzdGWmlH?= =?utf-8?B?N1ZGL3V4L29pTnhFRmVQTHdPb1lqZVhpTnMxeFFITlpZZDhZblpabTFXT00y?= =?utf-8?B?WmxYQVZRdkpaNGxBLzRablFWZVpWRWpsS25FaHIwWm5wVDhESy9SRFozZWow?= =?utf-8?B?M0c5OHhNUFROajRRMGE4OWRXa2hlOCtUbGZIbnZEUSt0bThVV1AzcjRoRUxT?= =?utf-8?B?RThDUXhrTm53dGU2cUQrZVFBbm9kWEw1NmllakQzMVhNeXh2TTZscWo4R2FH?= =?utf-8?B?ZG5xYTZnVmtldU96ZklTdDNTMHJUa1pLWVBvUWNJd3VITzdIWEpzY0NPZHVa?= =?utf-8?B?eWEranBGR0NzYjQyWVA1UWhZSGNPcmVrS2JKMXphc2o0MzBhQkFpa3crU3Nr?= =?utf-8?B?STJpbDA0UGNPMXBkZ1JrQThYb1BIaTJLQXF1V1U2NmJUcHgydWNVWGg5UURW?= =?utf-8?B?KzFoQVErODVsQkZSd1cvMDZzMm5uSlFaZTkzbzFnblZEcFJqT3NJNSs1cElW?= =?utf-8?B?bGpSM0dXM3lmYlNuc1c3UWtPMHkvRFVGTXlxTktKblB0bENNNmxnV1Q2QjBE?= =?utf-8?B?TnN3blNrVE92MDc0WGh3QkEza2FZaTFJQzlzcHdqalFPNlRlRzhhcnBUYndr?= =?utf-8?B?U3VGa2FTMTBjYXE3L1hVZTBPcmpuZUtmYWxTSnBrYzhHbDJoV2tlYnI4TU5S?= =?utf-8?B?cExFZDFGdDlIaWg3bDBUNWpkZ3ZheWFIZjg2YlNqSTVicU1WZXc2bjJSQkdo?= =?utf-8?B?U24ybnZ4WWx3Tml4eU94MGlvNk5OUzhuRVA4R1FxSXBhZDdsWExNOXkvWFho?= =?utf-8?B?ZUR5OXNZNDBPTVFudEFhcW94TFBUakhaSkNZOTZwL1ZsaTlmZ2dqcHRld1VQ?= =?utf-8?B?NHRhZ29yR3VkVGdCaU82TEFPWUxyekVwNWkvZXNxSEtjZThIQllYbFZnelNF?= =?utf-8?B?N1NndDhIMWhHSkNjL1NCTEQ4Qm1GbldFTVV4SkRNYTdCekVLK3JIczNmRURr?= =?utf-8?B?K1VVUjIxSFB6dXpiT3BoLzFKTjQ3RittNXFnVFgwKzlEQjZtQWpkbjY5TjZx?= =?utf-8?B?d08vSjd4SXdFU3BCS1daeVV0cmdCamxhZ1JyL2tneHBQUXYwYnpUZmg2bmNv?= =?utf-8?B?Rk40RGZQVndxMXBOMEdNME1oa0JoME5JdG9zeVMzVmF1SUxHYTN1OGdVUXBn?= =?utf-8?Q?mHl6U2rra4ip5YiuJ3ud4Srews0SmUnzmAnXond?= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB6910 Original-Authentication-Results: fujitsu.com; dkim=none (message not signed) header.d=none;fujitsu.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: fc66bae3-6240-4151-031c-08d920307979 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ouxf16tSUl74YTX9pkTJxh6apJkRaUvPtERErhTCVArlHFvLjrH910sb19t1uP4p5aioKKuphjLUW5bJHCGHGh1KnFHWajm+onD3Fi0AbNvAZD8L2V7M2H41Iyrui4YtwdFnJUIFsgQt3GbWbYgUh7i7cGs1nLu+/lh4FgTIVGQ5BpoQBMS4FUJ4gmQXDUbSAX3hUWTcM3vxl0SNba81fT+X4EcEQMeC0xqWnnVFm9R8xlbXqADOzeuvsCOXz825K0gAp0luHeA+Seb2ApFxbKrnS3y3ysGpFUuxUHWzgOjA+LkVay6y9NcVEXZBDfBj45KT01A2AIiSPhoL9pcVrE980y7fPQJXgE+agPvq6UgT+Y4eiBMtegyHzTgL/AogkiINzOrECU0B5DfCphS8Q0QC9spU9rie4KLR5U47crhJ7ZvrVUL3Shdic8+yGFfteaq6inM5XYjYuGd9Zmj+Shuah8kJ7C92eEnVBP9MKNHh21DlObXysUJaxdVuMWxiV8pp3H0Gj0hCafVuXIuwgVvvHGT5EDsR/IzlsNJjEXVLrSIwM8EYJn3pqUa992UOde4wsb7G27r8wHhsGZNjhL/k+zmtMxKkQ+lxLpCe6VIEqXbz4W0TRGt6ch1UOBjtB17TplKtvEtuTrMYZPS2xXATNjARlIZrVevtiAu4F8YaAHJl2Dxz6yTIymD78/SaBrqFpgSpIlM3oN5ceBCK/0X9wJJXAz6VNjnhYP7Lk4iPA3q8UH8OxprK+BcwK/bPzRm9jM+HoirhfMjvS3uTz6m5DhtGADe0Ii/D/QeCuMg= 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:(4636009)(346002)(39860400002)(376002)(136003)(396003)(46966006)(36840700001)(7696005)(16526019)(33656002)(82310400003)(2906002)(86362001)(478600001)(316002)(186003)(107886003)(5660300002)(8886007)(8936002)(6862004)(1076003)(36860700001)(26005)(70206006)(47076005)(4326008)(36756003)(70586007)(55016002)(83380400001)(336012)(82740400003)(8676002)(44832011)(2616005)(956004)(356005)(81166007)(2004002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 May 2021 10:24:50.5373 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c9db15f1-75de-499e-00ea-08d920307eb8 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: AM5EUR03FT023.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR08MB4760 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Szabolcs Nagy via Libc-alpha Reply-To: Szabolcs Nagy Cc: Naohiro Tamura , libc-alpha@sourceware.org Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" The 05/20/2021 07:34, Naohiro Tamura wrote: > From: Naohiro Tamura > > Let me send the whole updated patch. > Thanks. > Naohiro > > -- >8 -- > Subject: [PATCH v2 5/6] aarch64: Added Vector Length Set test helper script > > This patch is a test helper script to change Vector Length for child > process. This script can be used as test-wrapper for 'make check'. > > Usage examples: > > ~/build$ make check subdirs=string \ > test-wrapper='~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16' > > ~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16 \ > make test t=string/test-memcpy > > ~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 32 \ > ./debugglibc.sh string/test-memmove > > ~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 64 \ > ./testrun.sh string/test-memset thanks, this is ok for master. i will commit it. > --- > INSTALL | 4 ++ > manual/install.texi | 3 + > sysdeps/unix/sysv/linux/aarch64/vltest.py | 82 +++++++++++++++++++++++ > 3 files changed, 89 insertions(+) > create mode 100755 sysdeps/unix/sysv/linux/aarch64/vltest.py > > diff --git a/INSTALL b/INSTALL > index 065a568585e6..bc761ab98bbf 100644 > --- a/INSTALL > +++ b/INSTALL > @@ -380,6 +380,10 @@ the same syntax as 'test-wrapper-env', the only difference in its > semantics being starting with an empty set of environment variables > rather than the ambient set. > > + For AArch64 with SVE, when testing the GNU C Library, 'test-wrapper' > +may be set to "SRCDIR/sysdeps/unix/sysv/linux/aarch64/vltest.py > +VECTOR-LENGTH" to change Vector Length. > + > Installing the C Library > ======================== > > diff --git a/manual/install.texi b/manual/install.texi > index eb41fbd0b5ab..f1d858fb789c 100644 > --- a/manual/install.texi > +++ b/manual/install.texi > @@ -418,6 +418,9 @@ use has the same syntax as @samp{test-wrapper-env}, the only > difference in its semantics being starting with an empty set of > environment variables rather than the ambient set. > > +For AArch64 with SVE, when testing @theglibc{}, @samp{test-wrapper} > +may be set to "@var{srcdir}/sysdeps/unix/sysv/linux/aarch64/vltest.py > +@var{vector-length}" to change Vector Length. > > @node Running make install > @appendixsec Installing the C Library > diff --git a/sysdeps/unix/sysv/linux/aarch64/vltest.py b/sysdeps/unix/sysv/linux/aarch64/vltest.py > new file mode 100755 > index 000000000000..bed62ad151e0 > --- /dev/null > +++ b/sysdeps/unix/sysv/linux/aarch64/vltest.py > @@ -0,0 +1,82 @@ > +#!/usr/bin/python3 > +# Set Scalable Vector Length test helper > +# Copyright (C) 2021 Free Software Foundation, Inc. > +# This file is part of the GNU C Library. > +# > +# The GNU C Library is free software; you can redistribute it and/or > +# modify it under the terms of the GNU Lesser General Public > +# License as published by the Free Software Foundation; either > +# version 2.1 of the License, or (at your option) any later version. > +# > +# The GNU C Library is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU > +# Lesser General Public License for more details. > +# > +# You should have received a copy of the GNU Lesser General Public > +# License along with the GNU C Library; if not, see > +# . > +"""Set Scalable Vector Length test helper. > + > +Set Scalable Vector Length for child process. > + > +examples: > + > +~/build$ make check subdirs=string \ > +test-wrapper='~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16' > + > +~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 16 \ > +make test t=string/test-memcpy > + > +~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 32 \ > +./debugglibc.sh string/test-memmove > + > +~/build$ ~/glibc/sysdeps/unix/sysv/linux/aarch64/vltest.py 64 \ > +./testrun.sh string/test-memset > +""" > +import argparse > +from ctypes import cdll, CDLL > +import os > +import sys > + > +EXIT_SUCCESS = 0 > +EXIT_FAILURE = 1 > +EXIT_UNSUPPORTED = 77 > + > +AT_HWCAP = 16 > +HWCAP_SVE = (1 << 22) > + > +PR_SVE_GET_VL = 51 > +PR_SVE_SET_VL = 50 > +PR_SVE_SET_VL_ONEXEC = (1 << 18) > +PR_SVE_VL_INHERIT = (1 << 17) > +PR_SVE_VL_LEN_MASK = 0xffff > + > +def main(args): > + libc = CDLL("libc.so.6") > + if not libc.getauxval(AT_HWCAP) & HWCAP_SVE: > + print("CPU doesn't support SVE") > + sys.exit(EXIT_UNSUPPORTED) > + > + libc.prctl(PR_SVE_SET_VL, > + args.vl[0] | PR_SVE_SET_VL_ONEXEC | PR_SVE_VL_INHERIT) > + os.execvp(args.args[0], args.args) > + print("exec system call failure") > + sys.exit(EXIT_FAILURE) > + > +if __name__ == '__main__': > + parser = argparse.ArgumentParser(description= > + "Set Scalable Vector Length test helper", > + formatter_class=argparse.ArgumentDefaultsHelpFormatter) > + > + # positional argument > + parser.add_argument("vl", nargs=1, type=int, > + choices=range(16, 257, 16), > + help=('vector length '\ > + 'which is multiples of 16 from 16 to 256')) > + # remainDer arguments > + parser.add_argument('args', nargs=argparse.REMAINDER, > + help=('args '\ > + 'which is passed to child process')) > + args = parser.parse_args() > + main(args) > -- > 2.17.1 >