Message ID | 20220119135847.GU2646553@tucnak |
---|---|
State | New |
Headers |
Return-Path: <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3825B3857C53 for <patchwork@sourceware.org>; Wed, 19 Jan 2022 13:59:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3825B3857C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1642600784; bh=Wl1UezuKCx9iE/Esfc3qOw3BTlWcVQQXfmUp8an8xHo=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=MCZA6Q55Y8jatz9pWQjsixkR9+SlNMts/imHEwoEXk+uZ1W+F1e0cjyA5Gf9f14Rr woh2e3aKtpyg0u15qjHj9/sh+esMFubRVtbELRMLO3ZcnfKgTuCHw+xn0Anr2YOaTN T1ICqSZjLxRnVhhhRHr+6G5yvF1j0NEh/kr/Xohk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id A72813857C6B for <gcc-patches@gcc.gnu.org>; Wed, 19 Jan 2022 13:58:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A72813857C6B Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-487-SFY1j7DRMCOF3tUHzy2d5A-1; Wed, 19 Jan 2022 08:58:53 -0500 X-MC-Unique: SFY1j7DRMCOF3tUHzy2d5A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A8E211006AA4 for <gcc-patches@gcc.gnu.org>; Wed, 19 Jan 2022 13:58:52 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.40.192.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3B99784A38; Wed, 19 Jan 2022 13:58:49 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.16.1/8.16.1) with ESMTPS id 20JDwl322047966 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 19 Jan 2022 14:58:47 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.16.1/8.16.1/Submit) id 20JDwloH2047965; Wed, 19 Jan 2022 14:58:47 +0100 Date: Wed, 19 Jan 2022 14:58:47 +0100 To: Andrew MacLeod <amacleod@redhat.com>, Aldy Hernandez <aldyh@redhat.com> Subject: [PATCH] testsuite: Test evrp-trans.c also with unsigned types [PR104115] Message-ID: <20220119135847.GU2646553@tucnak> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Jakub Jelinek via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jakub Jelinek <jakub@redhat.com> Cc: gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org> |
Series |
testsuite: Test evrp-trans.c also with unsigned types [PR104115]
|
|
Commit Message
Jakub Jelinek
Jan. 19, 2022, 1:58 p.m. UTC
Hi! 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. Tested on x86_64-linux (-m32/-m64), ok for trunk? 2022-01-19 Jakub Jelinek <jakub@redhat.com> PR c/104115 * gcc.dg/tree-ssa/evrp-trans2.c: New test. Jakub
Comments
OK. Thanks. On Wed, Jan 19, 2022, 14:58 Jakub Jelinek <jakub@redhat.com> wrote: > Hi! > > 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. > > Tested on x86_64-linux (-m32/-m64), ok for trunk? > > 2022-01-19 Jakub Jelinek <jakub@redhat.com> > > PR c/104115 > * gcc.dg/tree-ssa/evrp-trans2.c: New test. > > --- gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c.jj 2022-01-19 > 14:54:31.195317913 +0100 > +++ gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c 2022-01-19 > 14:54:52.964019002 +0100 > @@ -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"} } */ > > Jakub > >
--- gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c.jj 2022-01-19 14:54:31.195317913 +0100 +++ gcc/testsuite/gcc.dg/tree-ssa/evrp-trans2.c 2022-01-19 14:54:52.964019002 +0100 @@ -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"} } */