From patchwork Thu Mar 5 16:03:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1249705 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-520720-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=SehgaohI; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CglOOoWl; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48YFt86JVqz9sPK for ; Fri, 6 Mar 2020 03:04:00 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=NNPHWIoU/xj1SI/7 zRDTAeVRrmpqX7qAZ2zF6Jl0Z09i2dfiPLyN1MlT2I8sclPDu1Xm3nanzEEt9gyr bCZB2wsybsqmIZDAMqB9SP0Neort+6MH1US/MYYvMqLtyYvKOK7LbHaLwCmIQv9Q VoUZ5kVNhswfVeB7KJcEpdkdxn8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type :content-transfer-encoding; s=default; bh=RKYMf+24GqkfboTys1abm6 H4+SE=; b=SehgaohIf3uGBjozYADfOAaEo3Y1ksn/HHC96Bb6v8UMFIwwcI82PR zHsDRAd2o6MEZS+8byCtcAesrZ9O4RnDbxIoeNz+FTZA3T6qQ/xShwS2NzsgJRDu +KlqHR1LaHm0q+NuzFRbRG6es4LbWW84Iv2oDvkIcIvhmfcT9bDfc= Received: (qmail 36246 invoked by alias); 5 Mar 2020 16:03:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 36201 invoked by uid 89); 5 Mar 2020 16:03:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (207.211.31.81) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Mar 2020 16:03:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583424217; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=KqJWn8Dcv2h7DUvBQaW6mTfB5E61aEBJ/KkXoQ6QrYQ=; b=CglOOoWlpUvONof4uyZ+a5geYZzasexUQlFFP9sQpF8tCstWQ8yRxZ1xEXFmZ+5FPP8JPZ xhgASlUdjZcMu4WUX0H465Zosec6Dk6Q2TnFNCHqP4ohouuUg56oxB1pSiiHkGrpSed/Da pMgqWkZAJiuA05W6t0gfCzQVcDrM6UM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-371-IHrcsV56OMOQ1b83rb6LWQ-1; Thu, 05 Mar 2020 11:03:35 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7241C1005512 for ; Thu, 5 Mar 2020 16:03:34 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 195A58B773 for ; Thu, 5 Mar 2020 16:03:33 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id 025G3VH0011756 for ; Thu, 5 Mar 2020 17:03:32 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id 025G3UN8011755 for gcc-patches@gcc.gnu.org; Thu, 5 Mar 2020 17:03:30 +0100 Date: Thu, 5 Mar 2020 17:03:30 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Add testcase for already fixed PR [PR90311] Message-ID: <20200305160330.GE2156@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 User-Agent: Mutt/1.11.3 (2019-02-01) X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-IsSubscribed: yes Hi! This PR has been fixed by r10-3970. Testcase tested with cross to armv7hl-linux-gnueabi (all of r10-3969 (FAIL), r10-3970 and current trunk (PASS)) and x86_64-linux and i686-linux, committed to trunk as obvious. 2020-03-05 Jakub Jelinek PR target/90311 * gcc.c-torture/execute/pr90311.c: New test. Jakub --- gcc/testsuite/gcc.c-torture/execute/pr90311.c.jj 2020-03-05 16:35:46.183005546 +0100 +++ gcc/testsuite/gcc.c-torture/execute/pr90311.c 2020-03-05 16:35:33.390195187 +0100 @@ -0,0 +1,16 @@ +/* PR rtl-optimization/90311 */ + +int a, b; + +int +main () +{ + unsigned long long x; + unsigned int c; + __builtin_add_overflow ((unsigned char) a, b, &c); + b -= c < (unsigned char) a; + x = b; + if (x) + __builtin_abort (); + return 0; +}