testsuite: fix 2 tests on aarch64
authorMartin Liska <mliska@suse.cz>
Wed, 9 Dec 2020 14:24:36 +0000 (15:24 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 9 Dec 2020 14:26:00 +0000 (15:26 +0100)
gcc/testsuite/ChangeLog:

PR tree-optimization/98182
* gcc.dg/tree-ssa/if-to-switch-1.c: Add case-values-threshold in
order to fix them for aarch64.
* gcc.dg/tree-ssa/if-to-switch-10.c: Likewise.

gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-1.c
gcc/testsuite/gcc.dg/tree-ssa/if-to-switch-10.c

index e66fa736e106d2b8bfa1d8cfdb5539e1ac8fdad6..e5da00b62d6dcfb28e45eba700ed30019bd98510 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 7b8da1c9f3c71f385b4fa7ca1cc5ef8d5c8f0e4c..7b21c99313cfe6c5ea7ad05ec611d10523b33d1c 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 ();