Message ID | Y8GJazeTmfv+2xgb@tucnak |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp369923wrt; Fri, 13 Jan 2023 08:41:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXs45M1O00JA8SH/52VLMpNjrFYvgRG5zDBpPLITPWyKwE6enXPAH72IMS5P0eCkJF8GL0o3 X-Received: by 2002:a17:906:a19a:b0:7c1:6d65:4718 with SMTP id s26-20020a170906a19a00b007c16d654718mr71045077ejy.33.1673628096903; Fri, 13 Jan 2023 08:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673628096; cv=none; d=google.com; s=arc-20160816; b=eSTiu1Jvg+YahkyD4THFKm/WwP9+iEJ4gWLx4YjfKV+pjUoRnvWX7M1I85cWYMIf/p +vHHZ0y6Ei8GL0dkE6ny2WjS7V3D8zKx6L/JVCOj8fGxUy4IlucTS2LQz7ohaY2by51u yivhRGmo59rxd0aGqwHoGb5XQn6u3K4r6Tsnq/5OTiYxGW5R2SZmjzkChNEgUF8an1kW zGXMAXCMvpCrOD845liftE0l+gUFAZ9QsdBfsVfh91k2yHVO1x8RPwrsyOZL1CatYNOv J0LeLMxQdq6UHT6aSoehnEXZKDyE+f7TrllrSlLg5IYuvILMzX/+ri69Wi9JGtAosw1g yMZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=zGyF35HzTfrpGneIwMErKqesg/NlQIVNY0DQ8mP3J8s=; b=waWtIobDcHMmXG+VCo0h/kO+abT904w1XLP6J7DD/v8lt7tExs5bjLJigIyPhSKlZ2 6UTjgMAuJH0szuBstwo+dbXOUFgLwbdEhrrRn1mjskH9iu+z+x2bEZCI4015xaWOwT6y 3a6x2zfy/wgbA2NiOZ1gE6QZuJO97pFTGkOppavpa4hRGbMmrlWRLTJrS5pH4zkpMQl3 pGpm9vwI3Iq7riWdgYdSwmihDc8e0mAFPdi1HJKhfE09sqjUXCiDDNxA2h9ALtKZq9hN aiBX6ZDE45hww9ALwl83z+AvhRDMmS3MvCZBQ4z2DDyQsiJV8pN3c0CUWiVyX4iPc+Bb lYow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=lrGvC7R6; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hr12-20020a1709073f8c00b008699e402607si3286167ejc.524.2023.01.13.08.41.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 08:41:36 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=lrGvC7R6; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4458E383FB96 for <ouuuleilei@gmail.com>; Fri, 13 Jan 2023 16:41:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4458E383FB96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673628092; bh=zGyF35HzTfrpGneIwMErKqesg/NlQIVNY0DQ8mP3J8s=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=lrGvC7R6gNuL47BinIjmf0vNCw/NrsWyqzjMQQxfVcV8Cwjp6fb3M4/ZKg/94xGjw 2rDax3tZ0X+SOr/CxFtC6pCpHQmLWOZn8mh4tNXxTm3V8J2wlw1kICtlUtHtMyAYjt qmG191cIYEuv/aMFb+Pt/GpADxXw3ApZ4iyBGyH4= 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 BDFE23839DF9 for <gcc-patches@gcc.gnu.org>; Fri, 13 Jan 2023 16:40:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BDFE23839DF9 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-383-34b0amU6MP2UsVkhYBaOmg-1; Fri, 13 Jan 2023 11:40:34 -0500 X-MC-Unique: 34b0amU6MP2UsVkhYBaOmg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 85F6818E5355 for <gcc-patches@gcc.gnu.org>; Fri, 13 Jan 2023 16:40:15 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.223]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1277C14171B7 for <gcc-patches@gcc.gnu.org>; Fri, 13 Jan 2023 16:40:14 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 30DGeBea1360548 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Fri, 13 Jan 2023 17:40:12 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 30DGeBul1360547 for gcc-patches@gcc.gnu.org; Fri, 13 Jan 2023 17:40:11 +0100 Date: Fri, 13 Jan 2023 17:40:11 +0100 To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Add another testcase from PR107131 Message-ID: <Y8GJazeTmfv+2xgb@tucnak> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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=-3.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754926255078344842?= X-GMAIL-MSGID: =?utf-8?q?1754926255078344842?= |
Series |
[committed] testsuite: Add another testcase from PR107131
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Jakub Jelinek
Jan. 13, 2023, 4:40 p.m. UTC
Hi! This one is hand reduced to problematic code from optimized dump that used to be miscompiled during combine starting with r12-303 and fixed with r13-3530 aka PR107172 fix. 2023-01-13 Jakub Jelinek <jakub@redhat.com> PR target/107131 * gcc.c-torture/execute/pr107131.c: New test. Jakub
--- gcc/testsuite/gcc.c-torture/execute/pr107131.c.jj 2023-01-13 17:29:42.713370475 +0100 +++ gcc/testsuite/gcc.c-torture/execute/pr107131.c 2023-01-13 17:29:33.366503884 +0100 @@ -0,0 +1,18 @@ +/* PR target/107131 */ + +__attribute__((noipa)) unsigned long long +foo (unsigned char o) +{ + unsigned long long t1 = -(long long) (o == 0); + unsigned long long t2 = -(long long) (t1 > 10439075533421201520ULL); + unsigned long long t3 = -(long long) (t1 <= t2); + return t3; +} + +int +main () +{ + if (foo (0) != -1ULL) + __builtin_abort (); + return 0; +}