]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Explicitly enable cselim pass for cselim-2.c
authorDimitar Dimitrov <dimitar@dinux.eu>
Wed, 8 Oct 2025 18:45:09 +0000 (21:45 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Thu, 9 Oct 2025 17:34:29 +0000 (20:34 +0300)
The cselim pass is enabled only for targets that have conditional move
instructions.  Since pru-unknown-elf doesn't have such instructions, the
pass is not executed, and the test fails with:

  gcc.dg/tree-ssa/cselim-2.c: dump file does not exist
  UNRESOLVED: gcc.dg/tree-ssa/cselim-2.c scan-tree-dump cselim "if-then-else store replacement: 3"

Fix by explicitly enabling the cselim pass for this test.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/cselim-2.c: Pass -ftree-cselim option.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/tree-ssa/cselim-2.c

index 2964fcfe1ff2941f7be9381d4ec146489c45cb6a..db58dd22e8a8bb2c14f3719869bc17dcf0bb192b 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-cselim-stats -fno-ssa-phiopt" } */
+/* { dg-options "-O2 -ftree-cselim -fdump-tree-cselim-stats -fno-ssa-phiopt" } */
 
 struct Loc {
     int x[3];