From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by sourceware.org (Postfix) with ESMTPS id 99C3D3858D28 for ; Wed, 29 Sep 2021 12:35:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 99C3D3858D28 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6337A20366 for ; Wed, 29 Sep 2021 12:35:07 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5192213FB7 for ; Wed, 29 Sep 2021 12:35:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id xJLOEntdVGFUNQAAMHmgww (envelope-from ) for ; Wed, 29 Sep 2021 12:35:07 +0000 Date: Wed, 29 Sep 2021 14:35:07 +0200 (CEST) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite/102517 - fix FAIL of gcc.dg/pr78408-1.c with OImode availability Message-ID: <906q938o-8on9-51q0-s686-n011734pnp97@fhfr.qr> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP 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, 29 Sep 2021 12:35:09 -0000 This fixes the testcase which looks for variants of memcpy after memset folding which is disturbed when we expand the memcpy inline earlier which in fact performs the desired optimization but makes the dump file not match. For the ease of testing the following adjusts the smaller structure size to be no longer power-of-two which avoids the inline expansion. Tested on x86_64-unknown-linux-gnu, pushed. 2021-09-29 Richard Biener PR testsuite/102517 * gcc.dg/pr78408-1.c: Make S not power-of-two size. --- gcc/testsuite/gcc.dg/pr78408-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/pr78408-1.c b/gcc/testsuite/gcc.dg/pr78408-1.c index 94e2090b374..dc9870ac6af 100644 --- a/gcc/testsuite/gcc.dg/pr78408-1.c +++ b/gcc/testsuite/gcc.dg/pr78408-1.c @@ -3,7 +3,7 @@ /* { dg-options "-O2 -fdump-tree-fab1-details" } */ /* { dg-final { scan-tree-dump-times "after previous" 17 "fab1" } } */ -struct S { char a[32]; }; +struct S { char a[33]; }; struct T { char a[65536]; }; void bar (int, struct S *, struct S *, struct T *, struct T *); void baz (char *, char *); -- 2.31.1