From: Richard Biener Date: Fri, 6 May 2022 08:37:26 +0000 (+0200) Subject: Avoid jump threading to defeat tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68db3417953d2068528435d4ab26250c889294aa;p=thirdparty%2Fgcc.git Avoid jump threading to defeat tests --- diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-13.c b/gcc/testsuite/gcc.dg/loop-unswitch-13.c index db59b8812471..200ea7c91d5c 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-optimized" } */ +/* { dg-options "-O2 -funswitch-loops -fno-thread-jumps -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, unsigned order) @@ -31,4 +31,5 @@ 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 "Unswitching loop on condition: order.* <= 4" "unswitch" } } */ +/* { dg-final { scan-tree-dump-times "Unswitching loop on condition" 1 "unswitch" } } */ diff --git a/gcc/testsuite/gcc.dg/loop-unswitch-7.c b/gcc/testsuite/gcc.dg/loop-unswitch-7.c index 19282cd731bf..64b1c965cef4 100644 --- a/gcc/testsuite/gcc.dg/loop-unswitch-7.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-optimized" } */ +/* { dg-options "-O2 -funswitch-loops -fno-thread-jumps -fdump-tree-unswitch-optimized" } */ int foo(double *a, double *b, double *c, double *d, double *r, int size, float order)