public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6738] testsuite: Test evrp-trans.c also with unsigned types [PR104115]
@ 2022-01-19 14:03 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2022-01-19 14:03 UTC (permalink / raw)
  To: gcc-cvs

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

commit r12-6738-gf35bb467a01db988d5fe1637db5bff4b4f9e7086
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Jan 19 15:02:31 2022 +0100

    testsuite: Test evrp-trans.c also with unsigned types [PR104115]
    
    The testcase from the PR got fixed with r12-3119-g675a3e40567e1d
    and looks quite similar to the evrp-trans.c test, except evrp-trans.c
    is tested on signed integer types.
    I think it would be useful to test it for unsigned comparisons too.
    
    2022-01-19  Jakub Jelinek  <jakub@redhat.com>
    
            PR c/104115
            * gcc.dg/tree-ssa/evrp-trans2.c: New test.

Diff:
---
 gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c b/gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c
new file mode 100644
index 00000000000..d6fe42714f6
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-tree-evrp" } */
+
+#define int unsigned
+#include "evrp-trans.c"
+
+/* { dg-final { scan-tree-dump-not "kill" "evrp" } }  */
+/* { dg-final { scan-tree-dump-times "keep" 13 "evrp"} } */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-19 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 14:03 [gcc r12-6738] testsuite: Test evrp-trans.c also with unsigned types [PR104115] Jakub Jelinek

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).