From patchwork Fri Sep 1 12:26:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 137388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c792:0:b0:3f2:4152:657d with SMTP id b18csp849890vqu; Fri, 1 Sep 2023 05:26:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFbCplbauL0s0wc8ZQ3dGZb08RlVFmE/MjqejIrQeOlDFTkzBbQubtxG1uiZHfBHdaDCy8G X-Received: by 2002:aa7:d494:0:b0:525:7f37:e87a with SMTP id b20-20020aa7d494000000b005257f37e87amr1858022edr.16.1693571217252; Fri, 01 Sep 2023 05:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693571217; cv=none; d=google.com; s=arc-20160816; b=sfY76Li4tQR60b3TIi9r66RiBzM+JUBztkTMRIRPoQj9O/s4NDU/Tkw9XmbSGRy1Cz l/3vRWOFKTaAH9YALt5uQXOQOnGYVLZ1qoQjGIzX128LEkugSg0rGzGh+x2X+jsZmNUb i7UCJODUMoyv/HUsKWf72pdQdPAwg7Vj1TsIVelmPo1axXlvDDSp9uAJ3AosCCaQWpGL FgGzzeCFfPcb85JtZXA37x85sM2b4VKm3on6VMmrkyOgDhokBTaKIpApTSoPojxhXwjK rdp7xY20OJw2PWEk07Hr4bQmmcC+zxJgp0NglwjgdpRwJbLNASJ1ZdUU+sahL4SQy4zd Tv5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:in-reply-to:mime-version:references:message-id :subject:cc:to:date:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=UJ92kmpvtXvy3mXDNLnfpPbnYXnfZGnDTQEdQI4gopw=; fh=4h4175keIzf7sfaSX3Jsva77zc59dUs4Ej5ki9+4jd0=; b=CDipEtQWiigGLksu7O+cfnEs16fGmN9f/h0wdRSS8NdHXP1mL8GwXc243kri7tt7+m 8ZrsjMeC1PkZS61n7S7yRuWNeBul2/13tbr7eoMpz9ce0FVccbmpuIVcFlTHWxt7OMaZ ieaTUdjqJoVAxdLtuu4nH52uSFQk7StsaHpNqPIVS1Bh9ZTbN9NrLor7B2VmAhmckfzr kEZoq8U+FrQ2nc2DnK5ZCvnvIKQIkOCgdE+G/Qr6T+pEchFuXShMmb7w7j3kY71zH+EX ccaWpHMUrmeEQMzRlD/+vyikrZ6+a6ByhrUuObBkS8I2cBrABwVLmwrcucwYuEa7o2Py 1bGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=JnyZqExp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id w3-20020aa7cb43000000b0052545601debsi2419534edt.461.2023.09.01.05.26.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 05:26:57 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=JnyZqExp; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E8EFC38582BD for ; Fri, 1 Sep 2023 12:26:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E8EFC38582BD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693571215; bh=UJ92kmpvtXvy3mXDNLnfpPbnYXnfZGnDTQEdQI4gopw=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=JnyZqExpgIzBuA6tZNRzC73h57rz5pYOhovB7AEzGo+mHDIBiONdjjorvsMYrZn4i H3b/t3uuMYIfX/cD/CKk8jAFny74EPSwWg1+y46DcR+TVhAhU+8tEKWmht3E7Ff3t2 MAkPrTaEBvQkLR8zO7gAMQhapm5/uCysIq6qNQos= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 E61583858C2B for ; Fri, 1 Sep 2023 12:26:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E61583858C2B Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-381-FmUG3bPgNYiZzMDXqVz2hg-1; Fri, 01 Sep 2023 08:26:09 -0400 X-MC-Unique: FmUG3bPgNYiZzMDXqVz2hg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 41621927C46; Fri, 1 Sep 2023 12:26:09 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0735C200BA73; Fri, 1 Sep 2023 12:26:08 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 381CQ7G72688660 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 1 Sep 2023 14:26:07 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 381CQ75S2688659; Fri, 1 Sep 2023 14:26:07 +0200 Date: Fri, 1 Sep 2023 14:26:06 +0200 To: Andrew Pinski Cc: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up pr110915* tests on i686-linux [PR110915] Message-ID: References: <20230830222511.685346-1-apinski@marvell.com> MIME-Version: 1.0 In-Reply-To: <20230830222511.685346-1-apinski@marvell.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-23.5 required=5.0 tests=BAYES_00, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jakub Jelinek via Gcc-patches From: Jakub Jelinek Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775838132657980200 X-GMAIL-MSGID: 1775838132657980200 On Wed, Aug 30, 2023 at 03:25:11PM -0700, Andrew Pinski via Gcc-patches wrote: > This simple patch extends the min_value/max_value match to vector integer types. > Using uniform_integer_cst_p makes this easy. These tests FAIL on i686-linux, with .../gcc/testsuite/gcc.dg/pr110915-1.c:8:1: warning: MMX vector return without MMX enabled changes the ABI [-Wpsabi] .../gcc/testsuite/gcc.dg/pr110915-1.c:7:15: warning: MMX vector argument without MMX enabled changes the ABI [-Wpsabi] excess warnings. I've added -Wno-psabi to quiet that up, plus I think it is undesirable to define macros like vector before including C library headers in case the header would use that identifier in non-obfuscated form somewhere. Tested on x86_64-linux with make check-gcc RUNTESTFLAGS='--target_board=unix\{-m32,-m32/-march=i686,-m64\} dg.exp=pr110915*' which previously FAILed, committed to trunk as obvious. 2023-09-01 Jakub Jelinek PR tree-optimization/110915 * gcc.dg/pr110915-1.c: Add -Wno-psabi to dg-options. Move vector macro definition after limits.h inclusion. * gcc.dg/pr110915-2.c: Likewise. * gcc.dg/pr110915-3.c: Likewise. * gcc.dg/pr110915-4.c: Likewise. * gcc.dg/pr110915-5.c: Likewise. * gcc.dg/pr110915-6.c: Likewise. * gcc.dg/pr110915-7.c: Likewise. * gcc.dg/pr110915-8.c: Likewise. * gcc.dg/pr110915-9.c: Likewise. * gcc.dg/pr110915-10.c: Likewise. * gcc.dg/pr110915-11.c: Likewise. * gcc.dg/pr110915-12.c: Likewise. Jakub --- gcc/testsuite/gcc.dg/pr110915-1.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-1.c 2023-09-01 14:12:47.937873487 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ifcombine" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed and1(vector unsigned x, vector unsigned y) { /* (x > y) & (x != 0) --> x > y */ --- gcc/testsuite/gcc.dg/pr110915-2.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-2.c 2023-09-01 14:12:52.791808013 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed and1(vector unsigned x, vector unsigned y) { /* (x > y) & (x != 0) --> x > y */ --- gcc/testsuite/gcc.dg/pr110915-3.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-3.c 2023-09-01 14:12:57.514744307 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ifcombine" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed and1(vector unsigned x, vector unsigned y) { /* (x > y) & (x == 0) --> false */ --- gcc/testsuite/gcc.dg/pr110915-4.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-4.c 2023-09-01 14:13:02.094682529 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed and1(vector unsigned x, vector unsigned y) { /* (x > y) & (x == 0) --> false */ --- gcc/testsuite/gcc.dg/pr110915-5.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-5.c 2023-09-01 14:13:06.609621628 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ifcombine" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed and1(vector unsigned x, vector unsigned y) { /* (x <= y) & (x == 0) --> x == 0 */ --- gcc/testsuite/gcc.dg/pr110915-6.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-6.c 2023-09-01 14:13:11.175560039 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed and1(vector unsigned x, vector unsigned y) { /* (x <= y) & (x == 0) --> x == 0 */ --- gcc/testsuite/gcc.dg/pr110915-7.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-7.c 2023-09-01 14:13:15.838497142 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ifcombine" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed or1(vector unsigned x, vector unsigned y) { /* (x > y) | (x != 0) --> x != 0 */ --- gcc/testsuite/gcc.dg/pr110915-8.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-8.c 2023-09-01 14:13:20.579433193 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed or1(vector unsigned x, vector unsigned y) { /* (x > y) | (x != 0) --> x != 0 */ --- gcc/testsuite/gcc.dg/pr110915-9.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-9.c 2023-09-01 14:13:27.147344600 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ifcombine" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector signed or1(vector unsigned x, vector unsigned y) { /* (x <= y) | (x != 0) --> true */ --- gcc/testsuite/gcc.dg/pr110915-10.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-10.c 2023-09-01 14:12:30.660106543 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector unsigned or1(vector unsigned x, vector unsigned y) { /* (x <= y) | (x != 0)) --> true */ --- gcc/testsuite/gcc.dg/pr110915-11.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-11.c 2023-09-01 14:12:36.510027635 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ifcombine" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-ifcombine -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector unsigned or1(vector unsigned x, vector unsigned y) { /* (x <= y) | (x == 0) --> x <= y */ --- gcc/testsuite/gcc.dg/pr110915-12.c.jj 2023-08-31 19:52:16.889305069 +0200 +++ gcc/testsuite/gcc.dg/pr110915-12.c 2023-09-01 14:12:41.322962714 +0200 @@ -1,9 +1,10 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-dce3" } */ -#define vector __attribute__((vector_size(sizeof(unsigned)*2))) +/* { dg-options "-O2 -fdump-tree-dce3 -Wno-psabi" } */ #include +#define vector __attribute__((vector_size(sizeof(unsigned)*2))) + vector unsigned or1(vector unsigned x, vector unsigned y) { /* (x <= y) | (x == 0) --> x <= y */