diff mbox series

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

Message ID 20241209193830.65CD42044A@pchp3.se.axis.com
State New
Headers show
Series testsuite/gcc.dg/tree-ssa/pr117973-1.c: New test | expand

Commit Message

Hans-Peter Nilsson Dec. 9, 2024, 7:38 p.m. UTC
I could probably assume that this is what you had in mind,
but anyway: Ok to commit?

-- >8 --
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 | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr117973-1.c

Comments

Richard Biener Dec. 10, 2024, 1:11 p.m. UTC | #1
On Mon, Dec 9, 2024 at 8:38 PM Hans-Peter Nilsson <hp@axis.com> wrote:
>
> I could probably assume that this is what you had in mind,
> but anyway: Ok to commit?

OK.

> -- >8 --
> 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 | 7 +++++++
>  1 file changed, 7 insertions(+)
>  create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr117973-1.c
>
> 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
> index 000000000000..6523b3ce59fe
> --- /dev/null
> +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr117973-1.c
> @@ -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" } } */
> --
> 2.30.2
>
> brgds, H-P
diff mbox series

Patch

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
index 000000000000..6523b3ce59fe
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr117973-1.c
@@ -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" } } */