]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite/gcc.dg/tree-ssa/pr117973-1.c: New test
authorHans-Peter Nilsson <hp@axis.com>
Mon, 9 Dec 2024 19:15:52 +0000 (20:15 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Tue, 10 Dec 2024 15:12:19 +0000 (16:12 +0100)
PR117973 covers the aspect of
non-LOGICAL_OP_NON_SHORT_CIRCUIT targets for PR111456, for
which the test-case gcc.dg/tree-ssa/pr111456-1.c started
failing as described in PR117954.

* gcc.dg/tree-ssa/pr117973-1.c: New test.

gcc/testsuite/gcc.dg/tree-ssa/pr117973-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr117973-1.c b/gcc/testsuite/gcc.dg/tree-ssa/pr117973-1.c
new file mode 100644 (file)
index 0000000..6523b3c
--- /dev/null
@@ -0,0 +1,7 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-optimized --param logical-op-non-short-circuit=0" } */
+/* PR tree-optimization/117973 */
+#include "pr111456-1.c"
+
+/* { dg-final { scan-tree-dump-not "foo " "optimized" { xfail *-*-* } } } */
+/* { dg-final { scan-tree-dump "return 0;" "optimized" } } */