From patchwork Wed Apr 16 20:52:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 110575 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 371DF3857C7F for ; Wed, 16 Apr 2025 20:53:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 371DF3857C7F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=aurel32.net header.i=@aurel32.net header.a=rsa-sha256 header.s=202004.hall header.b=kW+24N57 X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from hall.aurel32.net (hall.aurel32.net [IPv6:2001:bc8:30d7:100::1]) by sourceware.org (Postfix) with ESMTPS id 9BA5F3858424 for ; Wed, 16 Apr 2025 20:52:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9BA5F3858424 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=aurel32.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aurel32.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9BA5F3858424 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:bc8:30d7:100::1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744836769; cv=none; b=a1kpG0px3kCLMFamw7QcdrHVp7htrpK0+x9Sf14UIPpRfjH2kk2/mDrW7qUoLbrE5imZWgcrjdEJ1++JiwKyKWxScsAEtZUQHYHDuQr6QgwuHjfzOcqjLclicl8ni4/9Mh2GvxXw9256VxxUnD9/Pp8pZ1x5X53Gz4ybSotd0Zk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1744836769; c=relaxed/simple; bh=ceiV1e1TevJ0+BdDVSr08zsIc3SbLZeIBO4ZZzJVc5U=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=mThGR7MH9F8LPIPmC8z2qtPc37yCQ9e3Ynh2nNleBo6NfdWdl0yamselJAcPqYmpF37a3NuSi27m4qO46EZ0S1e0uql48dJBF0lbqpAEe3xhfaqLMK8oe5mH8I2uIIbZUdrPVd7HZhxu9R/FnWHkADjBc3WDphp6bW7Vc/J+5kE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9BA5F3858424 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=aurel32.net ; s=202004.hall; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Content-Type:From:Reply-To:Subject:Content-ID: Content-Description:In-Reply-To:References:X-Debbugs-Cc; bh=wKe8lfO1Db/vta7S4V9I4olscKB9KwkSvyLck5u2ZiM=; b=kW+24N57OQ+MjwwQ9JmCLeopzd d3i17/GtOw4Ctbx9ZTxwFRoQWFSSRVmpN4dbS3HUHmvSbsP9daQW43kb2aRwiLD3aSF0nydhFvtMP 8oe5wGw8ULVcKQYbDpoyhRedZHlnx5RG2u32hJ44mPmChQO5jWE/ZkAB+PYegTlsX7qBCR87ijxl/ 90HpbG1S9Nk9ka49pWtWlBx6HL14Z5s0fHPFklCSZP9vAGXM54JmS+F3KM9bZ9JQI+B94Q8EYlvW4 taWzpLxMlx8MEM4BvYfrwFNQlYRvubtG4KGDyx9SqU9gDdpHNQifswnisXHWivWvCy+4rwh8ZjFNG DlOAJdbA==; Received: from [2a01:e34:ec5d:a741:1ee1:92ff:feb4:5ec0] (helo=ohm.rr44.fr) by hall.aurel32.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1u59kT-00GmXD-0L; Wed, 16 Apr 2025 22:52:45 +0200 From: Aurelien Jarno To: libc-alpha@sourceware.org Cc: Aurelien Jarno Subject: [PATCH] elf: Compile AVX512 tests with -mno-vzeroupper [BZ #32882] Date: Wed, 16 Apr 2025 22:52:43 +0200 Message-ID: <20250416205243.275304-1-aurelien@aurel32.net> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_PASS, SPF_PASS, 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 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org Recent GCC versions (this got backported to stable branches) emit a vzeroupper instruction at the end of functions containing AVX instructions. This causes the tst-audit10 test to fails on CPUs lacking AVX instructions, despite the AVX512 check. The crash occurs in the pltenter function of tst-auditmod10b.c. Fix that by building the AVX512 tests with the -mno-vzeroupper option, similar to the existing approach for AVX tests. Tested on non-AVX, AVX2 and AVX512 machines. Reviewed-by: Sunil K Pandey --- sysdeps/x86_64/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile index 9d31685e02..64c8c63cf1 100644 --- a/sysdeps/x86_64/Makefile +++ b/sysdeps/x86_64/Makefile @@ -139,7 +139,7 @@ CFLAGS-tst-auditmod6c.c += $(AVX-CFLAGS) CFLAGS-tst-auditmod7b.c += $(AVX-CFLAGS) CFLAGS-tst-avx-aux.c += $(AVX-CFLAGS) CFLAGS-tst-avxmod.c += $(AVX-CFLAGS) -AVX512-CFLAGS = -mavx512f +AVX512-CFLAGS = -mavx512f -mno-vzeroupper CFLAGS-tst-audit10-aux.c += $(AVX512-CFLAGS) CFLAGS-tst-auditmod10a.c += $(AVX512-CFLAGS) CFLAGS-tst-auditmod10b.c += $(AVX512-CFLAGS)