From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id BC5783858D37 for ; Wed, 2 Mar 2022 10:09:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BC5783858D37 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-629-8nn7rtyQNi-1Zv6m5aDjsw-1; Wed, 02 Mar 2022 05:09:35 -0500 X-MC-Unique: 8nn7rtyQNi-1Zv6m5aDjsw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id DA1F4FC83 for ; Wed, 2 Mar 2022 10:09:34 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.81]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7115A2308C; Wed, 2 Mar 2022 10:09:34 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.16.1/8.16.1) with ESMTPS id 222A9Vvp971590 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 2 Mar 2022 11:09:32 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 222A9Vg5971589; Wed, 2 Mar 2022 11:09:31 +0100 Date: Wed, 2 Mar 2022 11:09:31 +0100 From: Jakub Jelinek To: Vladimir Makarov Cc: "gcc-patches@gcc.gnu.org" Subject: [committed] testsuite: Fix up pr104637 testcase [PR104637] Message-ID: Reply-To: Jakub Jelinek References: <4a0082c6-822f-9051-8fbe-8bd5b3e7372f@redhat.com> MIME-Version: 1.0 In-Reply-To: <4a0082c6-822f-9051-8fbe-8bd5b3e7372f@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2022 10:09:39 -0000 Hi! On Mon, Feb 28, 2022 at 04:49:08PM -0500, Vladimir Makarov via Gcc-patches wrote: > PR rtl-optimization/104637 > * gcc.target/i386/pr104637.c: New. This testcase FAILs everywhere for 3 reasons: 1) the testcase can't work on ia32, where sizeof (long double) == 12 and as it is not a power of 2, we disallow creating vectors with such elements, -mx32 and -m64 are fine 2) the testcase emits a lot of -Wdiv-by-zero warnings, I've just added -Wno-div-by-zero to dg-options 3) my fault, when tweaking the testcase I've missed 33 initializers of a 32 element vector which didn't change anything on the ICE, but is still reported This patch fixes all of it, tested with RUNTESTFLAGS='--target_board=unix\{-m32,-m64\} i386.exp=pr104637.c' both without the LRA fix where it ICEs and with it where it passes everywhere. Committed to trunk as obvious. 2022-03-02 Jakub Jelinek PR rtl-optimization/104637 * gcc.target/i386/pr104637.c: Don't run on ia32. Add -Wno-div-by-zero to dg-options. (foo): Remove extraneous initializer. --- gcc/testsuite/gcc.target/i386/pr104637.c.jj 2022-03-01 19:42:39.362262443 +0100 +++ gcc/testsuite/gcc.target/i386/pr104637.c 2022-03-02 10:52:43.943775712 +0100 @@ -1,5 +1,5 @@ -/* { dg-do compile } */ -/* { dg-options "-Og -fno-forward-propagate -mavx" } */ +/* { dg-do compile { target { ! ia32 } } } */ +/* { dg-options "-Og -fno-forward-propagate -mavx -Wno-div-by-zero" } */ typedef short __attribute__((__vector_size__ (64))) U; typedef unsigned long long __attribute__((__vector_size__ (32))) V; @@ -13,7 +13,7 @@ void foo (char a, char b, _Complex char c, V v) { u = (U) { u[0] / 0, u[1] / 0, u[2] / 0, u[3] / 0, u[4] / 0, u[5] / 0, u[6] / 0, u[7] / 0, - u[8] / 0, u[0] / 0, u[9] / 0, u[10] / 0, u[11] / 0, u[12] / 0, u[13] / 0, u[14] / 0, u[15] / 0, + u[8] / 0, u[9] / 0, u[10] / 0, u[11] / 0, u[12] / 0, u[13] / 0, u[14] / 0, u[15] / 0, u[16] / 0, u[17] / 0, u[18] / 0, u[19] / 0, u[20] / 0, u[21] / 0, u[22] / 0, u[23] / 0, u[24] / 0, u[25] / 0, u[26] / 0, u[27] / 0, u[28] / 0, u[29] / 0, u[30] / 0, u[31] / 0 }; c += i; Jakub