From patchwork Fri Sep 1 12:27:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 137389 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c792:0:b0:3f2:4152:657d with SMTP id b18csp850611vqu; Fri, 1 Sep 2023 05:28:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQ0y0eTomsFpfD5aa/5DSKAcUG03vDuMRFO3ErNYbv/8RUOT6/EfGZGcmkSrR5bDobKmzP X-Received: by 2002:a05:6402:1a36:b0:525:442b:6068 with SMTP id be22-20020a0564021a3600b00525442b6068mr1845838edb.13.1693571308362; Fri, 01 Sep 2023 05:28:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693571308; cv=none; d=google.com; s=arc-20160816; b=R8t8zvQdcjEThrRxbD2za7LCblsYPv9VDjdD87qTLkvaqEtRBAFDmiL7IrD2kK2Bh9 1RFnOgTnoS/VE+SDiqva8gN6fcTbIxcjl0SCZwp42gWH+bJdo1xILMWrXC/gx19KG3U0 MH6OrLS5AWcHmB7DDFaNaOkk36x9aOhnaRfNJtqiavnHnmSR0SRVDXU0Uqr5NuQxCWeO Bu0FxvjwGrue9FNy/gJ6gxXMKXxkgvskpuNDiKxmPQX0uKpENI2EAQVsEPtzllMn57/o F0UhhQhkUVVcmDUNq4HuoLh5mLb8ZmfSmOJ8UqmjFE2bt8r3cghPktrlpx0khaAodmN4 sX5A== 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=K/0tAqp+VZifk78A+kQ9F4TbAkGLCObmtNwq9RoyN8U=; fh=4h4175keIzf7sfaSX3Jsva77zc59dUs4Ej5ki9+4jd0=; b=kUP4VdOpJMnB61a5KWg/jqRdp08RXtv5iACAgNz64HbkbYDtcCrdnIWKnwbymFhYpN xrYYzy2n38z+jWHu9nijkDSTy5Dq/87svP47cbVyAYmYAZ3JiSFwOX4bs94wk3YvsxX0 NOaJllmWPC3BskJ7ITfGogyG4fiuWTv5iKCJylIHpNrDvSpkDnrZSYNJK3o9VVNS8exM AiRWqyIF8fmJz8lryKzAOiuVYKUDGylr0LyFK2yjIXo6Ig2r7VChVoXci/JrZuwBWswQ 81EnkX6bnf4kEx74sUkr+bVCZoi31lMUUislBRz8RQBB6EGyRCr0gUcGjX0Kd3EV7DDA izWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=D7YipHwW; 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 u12-20020aa7d88c000000b0052563bff339si2296424edq.286.2023.09.01.05.28.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Sep 2023 05:28:28 -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=D7YipHwW; 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 0D9193857BB3 for ; Fri, 1 Sep 2023 12:28:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D9193857BB3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693571307; bh=K/0tAqp+VZifk78A+kQ9F4TbAkGLCObmtNwq9RoyN8U=; 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=D7YipHwWzGbMOws1sy7/PWPLpccNNV8gbUGxHQXDNV045YTdt1gIhfRkQ2wwp65I4 lBJAzDzE2XdTjriY1HuxqY0zmhpn6Qm2R4vpW8tAiTcN/DYomtFwr9snQyfYHrXLGm 61t5gIedcY+1MD/igiQSnauW+aqYmYNfABiB5uQ8= 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 22D513858004 for ; Fri, 1 Sep 2023 12:27:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 22D513858004 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-575-_oKE7NUzO6ynEj_ESPQ0tw-1; Fri, 01 Sep 2023 08:27:41 -0400 X-MC-Unique: _oKE7NUzO6ynEj_ESPQ0tw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3523910264F6; Fri, 1 Sep 2023 12:27:41 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.45.224.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EFBB0D47819; Fri, 1 Sep 2023 12:27:40 +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 381CRdMT2688669 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 1 Sep 2023 14:27:39 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 381CRdb82688668; Fri, 1 Sep 2023 14:27:39 +0200 Date: Fri, 1 Sep 2023 14:27:38 +0200 To: Andrew Pinski Cc: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix vectcond-1.C FAIL on i686-linux [PR19832] Message-ID: References: <20230831172410.731800-1-apinski@marvell.com> MIME-Version: 1.0 In-Reply-To: <20230831172410.731800-1-apinski@marvell.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: 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: 1775838228412449632 X-GMAIL-MSGID: 1775838228412449632 On Thu, Aug 31, 2023 at 10:24:10AM -0700, Andrew Pinski via Gcc-patches wrote: > This patch adds the following match patterns to optimize these: > /* (a != b) ? (a - b) : 0 -> (a - b) */ 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 with make check-g++ RUNTESTFLAGS='--target_board=unix\{-m32,-m32/-march=i686,-m64\} dg.exp=vectcond-1.C' on x86_64-linux which previously FAILed, committed to trunk as obvious. 2023-09-01 Jakub Jelinek PR tree-optimization/19832 * g++.dg/opt/vectcond-1.C: Add -Wno-psabi to dg-options. Jakub --- gcc/testsuite/g++.dg/opt/vectcond-1.C.jj 2023-09-01 12:15:36.072430927 +0200 +++ gcc/testsuite/g++.dg/opt/vectcond-1.C 2023-09-01 14:20:22.688739458 +0200 @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-ccp1 -fdump-tree-optimized" } */ +/* { dg-options "-O2 -fdump-tree-ccp1 -fdump-tree-optimized -Wno-psabi" } */ /* This is the vector version of these optimizations. */ /* PR tree-optimization/19832 */