[PR42093] [arm] [thumb2] disable tree-dce for test
authorAlexandre Oliva <oliva@adacore.com>
Sat, 14 Jan 2023 00:15:42 +0000 (21:15 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sat, 14 Jan 2023 00:15:42 +0000 (21:15 -0300)
CD-DCE introduces blocks to share common PHI nodes, which replaces a
backwards branch that used to prevent the thumb2 jump table shortening
that PR42093 tested for.  In order to keep on testing that the
backward branch prevents the jumptable shortening, disable tree-dce.

for  gcc/testsuite/ChangeLog

PR target/42093
* gcc.target/arm/pr42093.c: Disable tree-dce.

gcc/testsuite/gcc.target/arm/pr42093.c

index 7ba2f93..69b1470 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-mthumb -O2 -fno-reorder-blocks" }  */
+/* { dg-options "-mthumb -O2 -fno-reorder-blocks -fno-tree-dce" }  */
 /* { dg-require-effective-target arm_thumb2_ok } */
 /* { dg-final { scan-assembler-not "tbb" } } */
 /* { dg-final { scan-assembler-not "tbh" } } */