public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/loop-unswitch-improvement-v7)] Fix test-cases. Date: Wed, 8 Dec 2021 18:26:42 +0000 (GMT) [thread overview] Message-ID: <20211208182642.D07AE385841B@sourceware.org> (raw) https://gcc.gnu.org/g:75af8a0a913e0835242ff5165be8a1f5183e1e97 commit 75af8a0a913e0835242ff5165be8a1f5183e1e97 Author: Martin Liska <mliska@suse.cz> Date: Tue Dec 7 17:49:01 2021 +0100 Fix test-cases. Diff: --- gcc/testsuite/gcc.dg/loop-unswitch-10.c | 10 +++++----- gcc/testsuite/gcc.dg/loop-unswitch-11.c | 10 +++++----- gcc/testsuite/gcc.dg/loop-unswitch-12.c | 4 ++-- gcc/testsuite/gcc.dg/loop-unswitch-13.c | 4 ++-- .../gcc.dg/{loop-unswitch-15.c => loop-unswitch-6.c} | 12 ++++++------ .../gcc.dg/{loop-unswitch-14.c => loop-unswitch-7.c} | 4 ++-- gcc/testsuite/gcc.dg/loop-unswitch-8.c | 4 ++-- gcc/testsuite/gcc.dg/loop-unswitch-9.c | 4 ++-- 8 files changed, 26 insertions(+), 26 deletions(-) diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-10.c b/gcc/testsuite/gcc.dg/loop-unswitch-10.c index c3c940a1f80..2ab196b527f 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-10.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */ int __attribute__((noipa)) @@ -50,7 +50,7 @@ int main() /* Test that we actually unswitched something. */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 0" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 2" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 3" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 0" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 2" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 3" 1 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-11.c b/gcc/testsuite/gcc.dg/loop-unswitch-11.c index 85173bd6b64..310e4f40423 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-11.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-11.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, int order) @@ -39,7 +39,7 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, int order) return 0; } -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order_.* >= 5 & order_.* <= 6 \\| order_.* == 9" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 2" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 3" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order_.* >= 5 & order_.* <= 6 \\| order_.* == 9" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 2" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 3" 1 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-12.c b/gcc/testsuite/gcc.dg/loop-unswitch-12.c index c99afe0e61c..adf0cdae7a8 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-12.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-12.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, int order) @@ -25,4 +25,4 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, int order) return 0; } -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-13.c b/gcc/testsuite/gcc.dg/loop-unswitch-13.c index df092b668d6..db59b881247 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-13.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-13.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, unsigned order) @@ -31,4 +31,4 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, unsigned or return 0; } -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* <= 4" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* <= 4" 1 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-15.c b/gcc/testsuite/gcc.dg/loop-unswitch-6.c similarity index 62% rename from gcc/testsuite/gcc.dg/loop-unswitch-15.c rename to gcc/testsuite/gcc.dg/loop-unswitch-6.c index 406611cd28a..ccf3c0f8978 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-15.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details --param=max-unswitch-insns=1000" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized --param=max-unswitch-insns=1000" } */ int __attribute__((noipa)) @@ -53,8 +53,8 @@ int main() /* Test that we actually unswitched something. */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* <= 0" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 0" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 2" 1 "unswitch" } } */ -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 3" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* <= 0" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 0" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 1" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 2" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 3" 1 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-14.c b/gcc/testsuite/gcc.dg/loop-unswitch-7.c similarity index 68% rename from gcc/testsuite/gcc.dg/loop-unswitch-14.c rename to gcc/testsuite/gcc.dg/loop-unswitch-7.c index 92e5cef5916..19282cd731b 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-14.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, float order) @@ -25,4 +25,4 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, float order return 0; } -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order.* == 1.0e" 1 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order.* == 1.0e" 1 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-8.c b/gcc/testsuite/gcc.dg/loop-unswitch-8.c index ae5f8f300e9..a08fd813dfb 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-8.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, int order) @@ -28,4 +28,4 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, int order) return 0; } -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order" 3 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order" 3 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-9.c b/gcc/testsuite/gcc.dg/loop-unswitch-9.c index 9dd6023d49d..2c9fb31c7b9 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-9.c +++ b/gcc/testsuite/gcc.dg/loop-unswitch-9.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-details" } */ +/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, int order) @@ -24,4 +24,4 @@ foo(double *a, double *b, double *c, double *d, double *r, int size, int order) return 0; } -/* { dg-final { scan-tree-dump-times ";; Unswitching loop on condition: order" 2 "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition: order" 2 "unswitch" } } */
next reply other threads:[~2021-12-08 18:26 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-12-08 18:26 Martin Liska [this message] -- strict thread matches above, loose matches on Subject: below -- 2021-12-09 12:48 Martin Liska 2021-12-08 10:18 Martin Liska 2021-12-07 16:52 Martin Liska 2021-12-07 16:50 Martin Liska
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211208182642.D07AE385841B@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).