From patchwork Tue Dec 10 09:06:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1206984 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-515581-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Gv9UObtQ"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="EeCd1Kru"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47XDhz0tMkz9sR0 for ; Tue, 10 Dec 2019 20:07:13 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=vIc4eUwroSBuUITh +n6yv/G8J+2j7J/3gmk0PuJT5uzwFV+dbeMgr5YU+hQDgviRDNfAJWrqs8fLzOV6 TDu0j5J8Ig/xWRNIfvZmtW5s71cgx+M+lN1efLkWext8UBJ3A2yrFAhyty9DjMP1 0Ip1yK8bC/+fXY0ZsQBUHzLAU5E= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type :content-transfer-encoding; s=default; bh=pAYjIl71ZURKfxrDFmzlRe gxicE=; b=Gv9UObtQ0KaHV03ZbboYu2ED2tE+Yw2TW9wF67tSFw7janHbQa268E ca//BI9DRJEvsBOGO9IHJptWgZIPpoOYwCbrmEPgUVrNTrDRXNqhnmNMuPcq/ROk /GfjDf6wcdNEekqFdC7n5wh1kqOCrAHetM3Y4bYzfUY/VLe7GGvr4= Received: (qmail 70646 invoked by alias); 10 Dec 2019 09:07:06 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 70638 invoked by uid 89); 10 Dec 2019 09:07:06 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-7.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=sk:avx512f, sx, phases X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 10 Dec 2019 09:07:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575968823; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=PF/5+ve2hZ/AOyzck6LI6/HRW3G+zNsltT/TVjQzpV4=; b=EeCd1KrugXvFgIJmlaXJ/f16C3kzKGRA8d0FE7+QR8TggYcpFs0SSOIpYnVvf/BqK0Wcv+ NNPj55lts6VyqlEwCFZkqIkxLjRK3+O2stiU88qoKfQ92vKrmaYymqHUG2hQGPftgb40gw T+nniqSa8CxvHYx8BBNIsP4pxAIWxbw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-58-i5jq_f43OYiLqgHYHbE0fA-1; Tue, 10 Dec 2019 04:07:02 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5F6228CC462 for ; Tue, 10 Dec 2019 09:07:01 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-117-59.ams2.redhat.com [10.36.117.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0C58F6BF9A for ; Tue, 10 Dec 2019 09:07:00 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id xBA96xw7001652 for ; Tue, 10 Dec 2019 10:06:59 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id xBA96wQi001651 for gcc-patches@gcc.gnu.org; Tue, 10 Dec 2019 10:06:58 +0100 Date: Tue, 10 Dec 2019 10:06:58 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix up i386/avx512f-vmovntp?-2.c tests Message-ID: <20191210090658.GW10088@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 User-Agent: Mutt/1.11.3 (2019-02-01) X-Mimecast-Spam-Score: 0 Content-Disposition: inline X-IsSubscribed: yes Hi! I've noticed these two tests FAIL execution with -fstack-protector-strong, without it we are just lucky. _mm512_stream_* requires the destination to be 64-byte aligned and without stack protector the s vars were allocated next to res and ensured the right alignment, but with -fstack-protector-strong, they go into different phases (res being an array so goes into phase 1 and s being a union/record containing arrays goes into phase 2) and so res remained only 8-byte aligned. Fixed thusly, tested on x86_64-linux, committed to trunk as obvious. 2019-12-10 Jakub Jelinek * gcc.target/i386/avx512f-vmovntpd-2.c: Ensure res is 64-byte aligned. * gcc.target/i386/avx512f-vmovntps-2.c: Likewise. Jakub --- gcc/testsuite/gcc.target/i386/avx512f-vmovntpd-2.c.jj 2013-12-31 12:51:09.564632909 +0100 +++ gcc/testsuite/gcc.target/i386/avx512f-vmovntpd-2.c 2019-12-10 09:53:02.213679644 +0100 @@ -8,7 +8,7 @@ void static avx512f_test (void) { union512d s; - double res[8]; + double res[8] __attribute__((aligned (64))); s.x = _mm512_set_pd (-39578.467285, 4294967295.1, -7856.342941, 0, 85632.783567, 1234.9999, 47563.234215, -1.07); --- gcc/testsuite/gcc.target/i386/avx512f-vmovntps-2.c.jj 2013-12-31 12:51:09.555632955 +0100 +++ gcc/testsuite/gcc.target/i386/avx512f-vmovntps-2.c 2019-12-10 09:53:19.096418920 +0100 @@ -8,7 +8,7 @@ void static avx512f_test (void) { union512 s; - float res[16]; + float res[16] __attribute__((aligned (64))); s.x = _mm512_set_ps (-39578.467285, 4294967295.1, -7856.342941, 0, 85632.783567, 1234.9999, 47563.234215, -1.07,