testsuite: use param for if-to-switch tests
authorMartin Liska <mliska@suse.cz>
Fri, 4 Dec 2020 09:43:51 +0000 (10:43 +0100)
committerMartin Liska <mliska@suse.cz>
Fri, 4 Dec 2020 09:45:22 +0000 (10:45 +0100)
gcc/testsuite/ChangeLog:

PR testsuite/98123
* gcc.dg/tree-ssa/if-to-switch-4.c: Add param to make the test
stable on all architectures.
* gcc.dg/tree-ssa/if-to-switch-6.c: Likewise.
* gcc.dg/tree-ssa/if-to-switch-8.c: Likewise.

gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-4.c
gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-6.c
gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-8.c

index 6a0358834578dbf8793f06a05e595e87f4db7c00..e6dd4beb6bc24663866c03589391769548f10f92 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */
+/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=5" } */
 
 int global;
 int foo ();
index 464b1fbd12476d614464e29207043fc775b22a4e..b1640673eae15daac38e92beedcb961d3b5bd489 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */
+/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=5" } */
 
 int global;
 int foo ();
index f43ce7daf782f729fb39d96511803e8bbe291f48..f4d06fed2b6a30b4de6a8052288c84855b2a4cd8 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized" } */
+/* { dg-options "-O2 -fdump-tree-iftoswitch-optimized --param case-values-threshold=5" } */
 
 int global;
 int global1;