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 [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 19C33385801A for ; Fri, 19 Mar 2021 10:47:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 19C33385801A 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-378-VOoVqNs8N9SOWcsQrQ3ypQ-1; Fri, 19 Mar 2021 06:47:45 -0400 X-MC-Unique: VOoVqNs8N9SOWcsQrQ3ypQ-1 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 27FCF190A7A1; Fri, 19 Mar 2021 10:47:43 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-112-95.ams2.redhat.com [10.36.112.95]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C56AA6F983; Fri, 19 Mar 2021 10:47:42 +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 12JAleRJ3418035 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 19 Mar 2021 11:47:40 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 12JAldke3418034; Fri, 19 Mar 2021 11:47:39 +0100 Resent-From: Jakub Jelinek Resent-Date: Fri, 19 Mar 2021 11:47:39 +0100 Resent-Message-ID: <20210319104739.GU3748@tucnak> Resent-To: Eric Botcazou , gcc-patches@gcc.gnu.org Date: Thu, 18 Mar 2021 09:57:32 +0100 From: Jakub Jelinek To: Eric Botcazou Cc: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up pr98099.c testcase for big endian [PR98099] Message-ID: <20210318085731.GQ231854@tucnak> Reply-To: Jakub Jelinek References: <11167197.LmN1t0yOBY@fomalhaut> MIME-Version: 1.0 In-Reply-To: <11167197.LmN1t0yOBY@fomalhaut> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 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=-6.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: Fri, 19 Mar 2021 10:47:48 -0000 On Thu, Dec 03, 2020 at 11:47:26AM +0100, Eric Botcazou wrote: > 2020-12-03 Eric Botcazou > > * gcc.dg/pr98099.c: New test. The testcase fails on big-endian without int128 support, because due to -fsso-struct=big-endian no swapping is needed for big endian. This patch restricts the testcase to big or little endian (but not pdp) and uses -fsso-struct=little-endian for big endian, so that it is swapping everywhere. Regtested on x86_64-linux, i686-linux and cross tested on powerpc64-linux -m32/-m64, acked by Eric in the PR, committed to trunk. 2021-03-18 Jakub Jelinek PR middle-end/98099 * gcc.dg/pr98099.c: Don't compile the test on pdp endian. For big endian use -fsso-struct=little-endian dg-options. --- gcc/testsuite/gcc.dg/pr98099.c.jj 2020-12-04 10:53:56.306043973 +0100 +++ gcc/testsuite/gcc.dg/pr98099.c 2021-03-17 20:05:07.714417723 +0100 @@ -1,8 +1,9 @@ /* PR middle-end/98099 */ /* Reported by G. Steinmetz */ -/* { dg-do compile { target dfp } } */ -/* { dg-options "-fsso-struct=big-endian" } */ +/* { dg-do compile { target { dfp && { be || le } } } } */ +/* { dg-options "-fsso-struct=big-endian" { target le } } */ +/* { dg-options "-fsso-struct=little-endian" { target be } } */ struct S { _Decimal128 a; }; Jakub