From 68db3417953d2068528435d4ab26250c889294aa Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 6 May 2022 10:37:26 +0200 Subject: [PATCH] Avoid jump threading to defeat tests --- gcc/testsuite/gcc.dg/loop-unswitch-13.c | 5 +++-- gcc/testsuite/gcc.dg/loop-unswitch-7.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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) -- 2.47.2