]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Avoid jump threading to defeat tests
authorRichard Biener <rguenther@suse.de>
Fri, 6 May 2022 08:37:26 +0000 (10:37 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 6 May 2022 08:37:26 +0000 (10:37 +0200)
gcc/testsuite/gcc.dg/loop-unswitch-13.c
gcc/testsuite/gcc.dg/loop-unswitch-7.c

index db59b881247183c0e55fe08b8e623a292affd62d..200ea7c91d5c9d9dc331220488ffbb247ee95973 100644 (file)
@@ -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" } } */
index 19282cd731bf89ccd1ace7b4ed30decd98529a15..64b1c965cef4e409d64ab01d986786d333e5e647 100644 (file)
@@ -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)