From patchwork Mon Apr 8 08:31:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 234598 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 3F96D2C00BE for ; Mon, 8 Apr 2013 18:31:25 +1000 (EST) 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:cc:subject:message-id:reply-to:mime-version :content-type; q=dns; s=default; b=rFwdoSNPjO95YK8FyB96JmRDAXOCH 21xPDWxVXWzw55h3upyUxRtM+89WYwe3Rv2qozIA1Ajr4ZD57cjC3sm7FI8G/N65 OHd1MMGBrq6NaY6zXRDB3ZP20nWZ2i2Xycm7P2+gnCU3E5+1Iny0xYVpsxAm8S/V ghIFH+1L4aJE0o= 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:cc:subject:message-id:reply-to:mime-version :content-type; s=default; bh=E7m3ELXDSegumndapHBLXyE9huM=; b=EsU C/zbiXsRYNmcN7w10PFr67zqD4b7haIcaRRuFHY+LNPlRdbJvIDfv292uvHcNkry Tpk7R1eTF9zmcUN3sIjTd87npasnHfrAxn+A1pwuc0ih4ujJePkoVkS6zP6Uch3D UPOZ+nKcKtVh1KWHgF5e8nMsYZQaTNBuIWQE91SY= Received: (qmail 1533 invoked by alias); 8 Apr 2013 08:31:17 -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 1524 invoked by uid 89); 8 Apr 2013 08:31:17 -0000 X-Spam-SWARE-Status: No, score=-7.6 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 08 Apr 2013 08:31:15 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r388VEWZ021233 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 8 Apr 2013 04:31:14 -0400 Received: from zalov.cz (vpn1-6-223.ams2.redhat.com [10.36.6.223]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r388VCP3005308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Apr 2013 04:31:13 -0400 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.cz (8.14.5/8.14.5) with ESMTP id r388VB1j021872; Mon, 8 Apr 2013 10:31:11 +0200 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id r388VAUj021871; Mon, 8 Apr 2013 10:31:10 +0200 Date: Mon, 8 Apr 2013 10:31:10 +0200 From: Jakub Jelinek To: Richard Biener Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Another ldist testcase Message-ID: <20130408083110.GN20334@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi! I was curious whether we don't miscompile the following testcase on 4.8 branch (-1+0i matches integer_all_onesp), but apparently we don't, because TYPE_PRECISION on the COMPLEX_TYPE is 0. Anyway, I'd like to check this into trunk/4.8 branch, ok? 2013-04-08 Jakub Jelinek * gcc.c-torture/execute/pr56837.c: New test. Jakub --- gcc/testsuite/gcc.c-torture/execute/pr56837.c.jj 2013-02-13 21:50:57.150673158 +0100 +++ gcc/testsuite/gcc.c-torture/execute/pr56837.c 2013-04-08 10:23:44.941870778 +0200 @@ -0,0 +1,21 @@ +extern void abort (void); +_Complex int a[1024]; + +__attribute__((noinline, noclone)) void +foo (void) +{ + int i; + for (i = 0; i < 1024; i++) + a[i] = -1; +} + +int +main () +{ + int i; + foo (); + for (i = 0; i < 1024; i++) + if (a[i] != -1) + abort (); + return 0; +}