public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] adjust tests
@ 2023-07-27  8:20 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-07-27  8:20 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:d54e36225e2c5e2cb097ca88b99ebbee22e815e1

commit d54e36225e2c5e2cb097ca88b99ebbee22e815e1
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Jul 21 07:34:06 2023 -0300

    adjust tests

Diff:
---
 gcc/config/i386/t-i386                     | 2 ++
 gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c | 4 ++--
 gcc/tree-ssa-ifcombine.cc                  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386
index b417c7f17ec..d58dce9ae0d 100644
--- a/gcc/config/i386/t-i386
+++ b/gcc/config/i386/t-i386
@@ -75,3 +75,5 @@ s-i386-bt: $(srcdir)/config/i386/i386-builtin-types.awk \
 	$(AWK) -f $^ > tmp-bt.inc
 	$(SHELL) $(srcdir)/../move-if-change tmp-bt.inc i386-builtin-types.inc
 	$(STAMP) $@
+
+insn-attrtab.o-warn = -Wno-error
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
index e3c33f49ef6..43152de5616 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
@@ -31,5 +31,5 @@ constraint_equal (struct constraint a, struct constraint b)
     && constraint_expr_equal (a.rhs, b.rhs);
 }
 
-/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */
-/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 2 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 2 "dse1" } } */
diff --git a/gcc/tree-ssa-ifcombine.cc b/gcc/tree-ssa-ifcombine.cc
index 3544e46f569..df25d570c23 100644
--- a/gcc/tree-ssa-ifcombine.cc
+++ b/gcc/tree-ssa-ifcombine.cc
@@ -129,7 +129,7 @@ bb_no_side_effects_p (basic_block bb)
       enum tree_code rhs_code;
       if (gimple_has_side_effects (stmt)
 	  || gimple_could_trap_p (stmt)
-	  || gimple_vuse (stmt)
+	  /* || gimple_vuse (stmt) */
 	  /* We need to rewrite stmts with undefined overflow to use
 	     unsigned arithmetic but cannot do so for signed division.  */
 	  || ((ass = dyn_cast <gassign *> (stmt))

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] adjust tests
@ 2023-08-18  3:55 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-08-18  3:55 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:b4a5044f21b91c0c9fba553506c6dc67d7dfba16

commit b4a5044f21b91c0c9fba553506c6dc67d7dfba16
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Jul 21 07:34:06 2023 -0300

    adjust tests

Diff:
---
 gcc/config/i386/t-i386                     | 2 ++
 gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c | 4 ++--
 gcc/tree-ssa-ifcombine.cc                  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386
index b417c7f17ec9..d58dce9ae0dc 100644
--- a/gcc/config/i386/t-i386
+++ b/gcc/config/i386/t-i386
@@ -75,3 +75,5 @@ s-i386-bt: $(srcdir)/config/i386/i386-builtin-types.awk \
 	$(AWK) -f $^ > tmp-bt.inc
 	$(SHELL) $(srcdir)/../move-if-change tmp-bt.inc i386-builtin-types.inc
 	$(STAMP) $@
+
+insn-attrtab.o-warn = -Wno-error
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
index e3c33f49ef60..43152de56163 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
@@ -31,5 +31,5 @@ constraint_equal (struct constraint a, struct constraint b)
     && constraint_expr_equal (a.rhs, b.rhs);
 }
 
-/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */
-/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 2 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 2 "dse1" } } */
diff --git a/gcc/tree-ssa-ifcombine.cc b/gcc/tree-ssa-ifcombine.cc
index 7a668a879a22..d951803dd181 100644
--- a/gcc/tree-ssa-ifcombine.cc
+++ b/gcc/tree-ssa-ifcombine.cc
@@ -129,7 +129,7 @@ bb_no_side_effects_p (basic_block bb)
       enum tree_code rhs_code;
       if (gimple_has_side_effects (stmt)
 	  || gimple_could_trap_p (stmt)
-	  || gimple_vuse (stmt)
+	  /* || gimple_vuse (stmt) */
 	  /* We need to rewrite stmts with undefined overflow to use
 	     unsigned arithmetic but cannot do so for signed division.  */
 	  || ((ass = dyn_cast <gassign *> (stmt))

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] adjust tests
@ 2023-07-21 18:01 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-07-21 18:01 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4007a26e07b60ae5f752b8501d433e2848155273

commit 4007a26e07b60ae5f752b8501d433e2848155273
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Jul 21 07:34:06 2023 -0300

    adjust tests

Diff:
---
 gcc/config/i386/t-i386                     | 2 ++
 gcc/gimple-fold.cc                         | 4 ++++
 gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c | 4 ++--
 gcc/tree-ssa-ifcombine.cc                  | 2 +-
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386
index b417c7f17ec..d58dce9ae0d 100644
--- a/gcc/config/i386/t-i386
+++ b/gcc/config/i386/t-i386
@@ -75,3 +75,5 @@ s-i386-bt: $(srcdir)/config/i386/i386-builtin-types.awk \
 	$(AWK) -f $^ > tmp-bt.inc
 	$(SHELL) $(srcdir)/../move-if-change tmp-bt.inc i386-builtin-types.inc
 	$(STAMP) $@
+
+insn-attrtab.o-warn = -Wno-error
diff --git a/gcc/gimple-fold.cc b/gcc/gimple-fold.cc
index cc7ba84e64d..f65922309fb 100644
--- a/gcc/gimple-fold.cc
+++ b/gcc/gimple-fold.cc
@@ -7912,9 +7912,13 @@ fold_truth_andor_maybe_separate (location_t loc,
   ll_mask = int_const_binop (LSHIFT_EXPR,
 			     fold_convert_loc (loc, lntype, ll_mask),
 			     size_int (xll_bitpos));
+  if (!ll_mask)
+    return 0;
   rl_mask = int_const_binop (LSHIFT_EXPR,
 			     fold_convert_loc (loc, lntype, rl_mask),
 			     size_int (xrl_bitpos));
+  if (!rl_mask)
+    return 0;
 
   if (l_const)
     {
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
index e3c33f49ef6..43152de5616 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
@@ -31,5 +31,5 @@ constraint_equal (struct constraint a, struct constraint b)
     && constraint_expr_equal (a.rhs, b.rhs);
 }
 
-/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */
-/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 2 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 2 "dse1" } } */
diff --git a/gcc/tree-ssa-ifcombine.cc b/gcc/tree-ssa-ifcombine.cc
index 3544e46f569..df25d570c23 100644
--- a/gcc/tree-ssa-ifcombine.cc
+++ b/gcc/tree-ssa-ifcombine.cc
@@ -129,7 +129,7 @@ bb_no_side_effects_p (basic_block bb)
       enum tree_code rhs_code;
       if (gimple_has_side_effects (stmt)
 	  || gimple_could_trap_p (stmt)
-	  || gimple_vuse (stmt)
+	  /* || gimple_vuse (stmt) */
 	  /* We need to rewrite stmts with undefined overflow to use
 	     unsigned arithmetic but cannot do so for signed division.  */
 	  || ((ass = dyn_cast <gassign *> (stmt))

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] adjust tests
@ 2023-07-21 15:44 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-07-21 15:44 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:c8b3c44666d32127d7c085dad73c523951777801

commit c8b3c44666d32127d7c085dad73c523951777801
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Jul 21 07:34:06 2023 -0300

    adjust tests

Diff:
---
 gcc/config/i386/t-i386                     | 2 ++
 gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c | 4 ++--
 gcc/tree-ssa-ifcombine.cc                  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386
index b417c7f17ec..d58dce9ae0d 100644
--- a/gcc/config/i386/t-i386
+++ b/gcc/config/i386/t-i386
@@ -75,3 +75,5 @@ s-i386-bt: $(srcdir)/config/i386/i386-builtin-types.awk \
 	$(AWK) -f $^ > tmp-bt.inc
 	$(SHELL) $(srcdir)/../move-if-change tmp-bt.inc i386-builtin-types.inc
 	$(STAMP) $@
+
+insn-attrtab.o-warn = -Wno-error
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
index e3c33f49ef6..43152de5616 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
@@ -31,5 +31,5 @@ constraint_equal (struct constraint a, struct constraint b)
     && constraint_expr_equal (a.rhs, b.rhs);
 }
 
-/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */
-/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 2 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 2 "dse1" } } */
diff --git a/gcc/tree-ssa-ifcombine.cc b/gcc/tree-ssa-ifcombine.cc
index 3544e46f569..df25d570c23 100644
--- a/gcc/tree-ssa-ifcombine.cc
+++ b/gcc/tree-ssa-ifcombine.cc
@@ -129,7 +129,7 @@ bb_no_side_effects_p (basic_block bb)
       enum tree_code rhs_code;
       if (gimple_has_side_effects (stmt)
 	  || gimple_could_trap_p (stmt)
-	  || gimple_vuse (stmt)
+	  /* || gimple_vuse (stmt) */
 	  /* We need to rewrite stmts with undefined overflow to use
 	     unsigned arithmetic but cannot do so for signed division.  */
 	  || ((ass = dyn_cast <gassign *> (stmt))

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] adjust tests
@ 2023-07-21 14:18 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-07-21 14:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8558fe947edac94b079d164a7d064f5171a54e0f

commit 8558fe947edac94b079d164a7d064f5171a54e0f
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Jul 21 07:34:06 2023 -0300

    adjust tests

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c | 4 ++--
 gcc/tree-ssa-ifcombine.cc                  | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
index e3c33f49ef6..43152de5616 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
@@ -31,5 +31,5 @@ constraint_equal (struct constraint a, struct constraint b)
     && constraint_expr_equal (a.rhs, b.rhs);
 }
 
-/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */
-/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 2 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 2 "dse1" } } */
diff --git a/gcc/tree-ssa-ifcombine.cc b/gcc/tree-ssa-ifcombine.cc
index 3544e46f569..df25d570c23 100644
--- a/gcc/tree-ssa-ifcombine.cc
+++ b/gcc/tree-ssa-ifcombine.cc
@@ -129,7 +129,7 @@ bb_no_side_effects_p (basic_block bb)
       enum tree_code rhs_code;
       if (gimple_has_side_effects (stmt)
 	  || gimple_could_trap_p (stmt)
-	  || gimple_vuse (stmt)
+	  /* || gimple_vuse (stmt) */
 	  /* We need to rewrite stmts with undefined overflow to use
 	     unsigned arithmetic but cannot do so for signed division.  */
 	  || ((ass = dyn_cast <gassign *> (stmt))

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] adjust tests
@ 2023-07-21 10:35 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-07-21 10:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:80013374e9bddc783ac093f3a138a2ece5f2e9ec

commit 80013374e9bddc783ac093f3a138a2ece5f2e9ec
Author: Alexandre Oliva <oliva@gnu.org>
Date:   Fri Jul 21 07:34:06 2023 -0300

    adjust tests

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
index e3c33f49ef6..43152de5616 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-26.c
@@ -31,5 +31,5 @@ constraint_equal (struct constraint a, struct constraint b)
     && constraint_expr_equal (a.rhs, b.rhs);
 }
 
-/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 1 "dse1" } } */
-/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 1 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: x = " 2 "dse1" } } */
+/* { dg-final { scan-tree-dump-times "Deleted dead store: y = " 2 "dse1" } } */

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-18  3:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27  8:20 [gcc(refs/users/aoliva/heads/testme)] adjust tests Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2023-08-18  3:55 Alexandre Oliva
2023-07-21 18:01 Alexandre Oliva
2023-07-21 15:44 Alexandre Oliva
2023-07-21 14:18 Alexandre Oliva
2023-07-21 10:35 Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).