aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-05-06 10:37:26 +0200
committerRichard Biener <rguenther@suse.de>2022-05-06 10:37:26 +0200
commit68db3417953d2068528435d4ab26250c889294aa (patch)
tree6edbd3b87ddf3018b5ce5dbada8de52cc96f7f6c
parent3281d212cb09a20f52f986b812af20de2ed348f6 (diff)
downloadgcc-68db3417953d2068528435d4ab26250c889294aa.zip
gcc-68db3417953d2068528435d4ab26250c889294aa.tar.gz
gcc-68db3417953d2068528435d4ab26250c889294aa.tar.bz2
Avoid jump threading to defeat tests
-rw-r--r--gcc/testsuite/gcc.dg/loop-unswitch-13.c5
-rw-r--r--gcc/testsuite/gcc.dg/loop-unswitch-7.c2
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 db59b88..200ea7c 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 19282cd..64b1c96 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)