From patchwork Wed Feb 28 10:56:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 207752 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3267736dyb; Wed, 28 Feb 2024 02:57:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVNMXYDjoqT5QLjIrUjl0ivn5PUStBENJHcoSze2gzQWrD/b7mK4i6PbUNRzsUtLFeTeRRJaXpb4YoFXgmConjaI8Espg== X-Google-Smtp-Source: AGHT+IFkjbJdWbpnV0zP68l7VCZud3vu75etzmG5PXVixLwExeHk3HcpAdrILpxy/y5X+XqpD+aw X-Received: by 2002:a05:620a:611a:b0:787:c94e:840e with SMTP id oq26-20020a05620a611a00b00787c94e840emr4754624qkn.48.1709117864554; Wed, 28 Feb 2024 02:57:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709117864; cv=pass; d=google.com; s=arc-20160816; b=mUQM5P8C719I9MESxmRPQaVAdUGc32Kid8ozFJCnGqVeocGG17+hArRfuBqyKhrigy gBLEA9XYYyccalBJv7W9EAo+Bz9xlMa8EH86Z2zjGPF5fiW+yoPdsNzsSaH6rxDb/5Yn Zlg+97ncYYQ8swsBxqlKJcuLJtYx+85v6BxgpkqtlF8w9nWWlKe+OGEgvjGNb1s1t/CF kY0J1muirn/IvnPmGlRB5+bfBHbBQNS4KvARrmisPpKT2/5Xt+mfz2c9Mz0okZ5RkCRE p5ttqWfq55GX5daGH2ReAgsFxEJmEOkrM/xE770e2TW8riwWA7DT42SJUixyThFIQuwn UmEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=7OmPxqRg72snVfrC72nO0d9yMVa9xfEZ+9dIaXoFxds=; fh=CsXRKvj52/laicqCum6OP5qgdAhMteClgei3+7pvGLk=; b=Xmw6C2gk5RN6Vw+8C5rFBfgISkFZ/wpzcMwRCV6ucvYbNAbKR/Ke7HSBkCqCynd6pJ +FsoyEu9X+DLyjpJnE7FSvGjn1ewtKVVx8dBIPNDZ7VW9Ys17AtWcTKheQfkdyLzxUTj 7d9sX2en5KQ2+V3nK6XPdeGBZkDCWey4RIG9qM26Hy3vgL4aitAmqN9OB/jotQa3HruM /z4cPqQ+j6ne4Ou1E6ZgziZIfg6GmLNdLAygs7R8YaMOdmudbfimrchXXH5x0yQzJMUk 6q8DxAOIq/byegFDwxayYwzukD9ebaCBHjoP3jodrc2mCu1rDWPC58ABqw5FyBaY9W1v f1BQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b="mMG/eS2v"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id b12-20020a05620a118c00b00787f4530b10si404669qkk.263.2024.02.28.02.57.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:57:44 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b="mMG/eS2v"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 422BA385840E for ; Wed, 28 Feb 2024 10:57:44 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id AAC9B3858C52; Wed, 28 Feb 2024 10:56:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AAC9B3858C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AAC9B3858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709117814; cv=none; b=ekHTGVh95cA1YW2g7AGs0/usWGBgCmOqvSp1n9xQz3ZokACbmWda5FCcciHSVcgirlZ8g7hOQZJXLbzlEnBtPuOmbSxO1Gj5JfE3joeTZd0KvqZwWLoANld28vH0GvJHdauv73ITLCrVsQ6+/1KNwNw1iHgE55VUWyj3RI81jOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709117814; c=relaxed/simple; bh=zZijwNZQ+uG+YQNmSZurwQnpbKoRbaDKcWN0ID6Q+gM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=huUtOIR9gEBeXb/BqbccVnK61Yez3qVQ40LZgrs1OqIJ+I520wrfrVlXFZ/NrA0zzdLNSxJYUcFA79ZIzp+x2zQvHKODkUOyTC7MZr0QDtT8N35SDQnecNIdMJi/kn8/zFgST8KxEwgtaINH4v4Josurto2nH8H2aKJujy+FDxM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 8F2F8C203B; Wed, 28 Feb 2024 11:56:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1709117810; bh=zZijw NZQ+uG+YQNmSZurwQnpbKoRbaDKcWN0ID6Q+gM=; b=mMG/eS2veVz4L9pYdue33 WKflQDT4oxPZIaDugtLP3xZ7n28fBZzHWAq4+8UREERdmCba0Gk5lpQWFUux3RH7 A1umq1KVXGCx7TKjVrUXmBgzBxGgzvtJHzb9IgkgRI4jzHwQyi4tF22u0KlnO/Y7 a1iJGghsoxinLS5G1ZwFoZ4hKOBCBhCEtwKAdwyscjpk2CuVR74fxW0HiHCcJr6e /xaQT+tcNBjSRAS6eEJXy75+KFoFJQVb008/4zS/1b3kap7gPiRMqgl5QXKeISQS dY/Mwi9tKrJHD/F3axBVw35Gnb8PXRS+hB/mBhCLvKDDa8TPa3z+G3C9i5ubhUhX g== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PSqlDh5GxZuK; Wed, 28 Feb 2024 11:56:50 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p50855b30.dip0.t-ipconnect.de [80.133.91.48]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 0CFB5C59D7; Wed, 28 Feb 2024 11:56:50 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Martin Sebor Subject: [COMMITTED] testsuite: Fix gcc.dg/tree-ssa/builtin-snprintf-6.c XPASS on i?86 -m64 [PR91567] Date: Wed, 28 Feb 2024 11:56:49 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3789.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792139974299539107 X-GMAIL-MSGID: 1792139974299539107 gcc.dg/tree-ssa/builtin-snprintf-6.c currently XPASSes on i?86-*-* configurations with -m64: XPASS: gcc.dg/tree-ssa/builtin-snprintf-6.c scan-tree-dump-times optimized "Function test_assign_aggregate" 1 (seen e.g. on i386-pc-solaris2.11, i686-pc-linux-gnu, or i386-apple-darwin*). The problem is that the xfail only handles x86_64, ignoring that i?86 configurations can also be multilibbed. This patch fixes the by handling both forms alike. Tested on i386-pc-solaris2.11, amd64-pc-solaris2.11, sparc-sun-solaris2.11, and sparcv9-sun-solaris2.11. Committed to trunk. Rainer # HG changeset patch # Parent 27664b7bca147c0d4b3e5aa0e758719dbfc543aa testsuite: Fix gcc.dg/tree-ssa/builtin-snprintf-6.c XPASS on i?86 -m64 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-6.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-6.c --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-snprintf-6.c @@ -91,7 +91,7 @@ void test_assign_aggregate (void) T (5, "123456", "s=%.*s", 3, &s.a[2]); } -/* { dg-final { scan-tree-dump-times "Function test_assign_aggregate" 1 "optimized" { xfail { { ! x86_64-*-* } || { ilp32 } } } } } */ +/* { dg-final { scan-tree-dump-times "Function test_assign_aggregate" 1 "optimized" { xfail { { ! { i?86-*-* x86_64-*-* } } || { ilp32 } } } } } */ #endif /* x86_64 */