diff mbox series

[committed] Fix more minor testsuite fallout from improved switch optimization

Message ID 2a0615ec-f252-42c5-019f-75b09e8cb957@redhat.com
State New
Headers show
Series [committed] Fix more minor testsuite fallout from improved switch optimization | expand

Commit Message

Jeff Law Dec. 1, 2020, 10:10 p.m. UTC
pr96480 regressed on nds32le-elf after the recent switch table
improvements.  Options for this test were tweaked as part of those
changes, but they're insufficient to keep it from regressing on
nds32le-elf.  This patch disables jump table optimization on that test
which resolves the regression.

Pushing to the trunk.

jeff
commit cebf2847271b65159e4e687e38a3a64e148084f9
Author: Jeff Law <law@redhat.com>
Date:   Tue Dec 1 15:06:48 2020 -0700

    Fix more minor testsuite fallout from improved switch optimization
    
    gcc/testsuite
            * tree-ssa/pr96480.c: Disable jump table optimization
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr96480.c b/gcc/testsuite/gcc.dg/tree-ssa/pr96480.c
index cc04721c1df..fc2103dc172 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr96480.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr96480.c
@@ -1,6 +1,6 @@ 
 /* PR tree-optimization/96480 */
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized -fno-bit-tests" } */
+/* { dg-options "-O2 -fdump-tree-optimized -fno-bit-tests -fno-jump-tables" } */
 /* { dg-final { scan-tree-dump " = _\[0-9]* <= 3;" "optimized" } } */
 
 int v[4];