diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2023-02-02 14:53:33 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2023-02-02 14:53:33 +0000 |
commit | 5b7b9d2da7691abba0a86c6e6c6935e29f365191 (patch) | |
tree | 0d5f33b670b5985e5d98014c74b78e21785e3ce5 | |
parent | d84dc419e692d42c3b1e0c82e972c8a6f4c71389 (diff) | |
download | gcc-5b7b9d2da7691abba0a86c6e6c6935e29f365191.zip gcc-5b7b9d2da7691abba0a86c6e6c6935e29f365191.tar.gz gcc-5b7b9d2da7691abba0a86c6e6c6935e29f365191.tar.bz2 |
testsuite: Add case-values-threshold to pr107876.C
This test was failing on aarch64 because aarch64 overrides
TARGET_CASE_VALUES_THRESHOLD. The maximum value that allows
the test to pass appears to be 6, but the default threshold
is 4 or 5 (depending on whether casesi is provided).
Going for 4 seemed safest, in case any target-specific
features force the maximum passing threshold to be lower
on some targets.
gcc/testsuite/
* g++.dg/tree-ssa/pr107876.C: Add --param case-values-threshold=4.
-rw-r--r-- | gcc/testsuite/g++.dg/tree-ssa/pr107876.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr107876.C b/gcc/testsuite/g++.dg/tree-ssa/pr107876.C index 6cff2f1..d920ba0 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr107876.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr107876.C @@ -1,6 +1,6 @@ // { dg-do compile } // { dg-require-effective-target c++11 } -// { dg-options "-O2 -funswitch-loops --param max-unswitch-insns=5 -fdump-tree-unswitch-details" } +// { dg-options "-O2 -funswitch-loops --param max-unswitch-insns=5 --param case-values-threshold=4 -fdump-tree-unswitch-details" } class X { public: |