From patchwork Thu Nov 1 17:05:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jozef Lawrynowicz X-Patchwork-Id: 992014 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-488833-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mittosystems.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="n9yqitUP"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mittosystems.com header.i=@mittosystems.com header.b="UGWuqEN8"; 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 42mBRh1kNvz9s4s for ; Fri, 2 Nov 2018 04:05:51 +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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=XBvu4nVKiiZ/H1SA677DHw0ioFN2TrdNDrdmsjlbtSMNk+HNWv KbFk8L2IA+jARBE90aYU/NDIunJx6dAaQeesfray8tjTciIyHk0dnmog2Vc3+1sa hC5r2VjkMdRLkAo3oVI+mgg648dCb0xmaOvXLRweiUCguWcEuHEmuD6LA= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=SyNQU7HJpp2KUA1+V95mdRVll+Q=; b=n9yqitUPF9l+zh4NjQ5P igIiVqdbAXDEoSm8RXiOiDcucktJrqeEE+VuZIm6+jP0C1hrzrdoEzqdBJPO6frs dEvE2K8BXF9c8scOcv+8CYKDC+69QzIQrZUTtmqs6sSU1BmNpvq5zHRu390Ssgz0 XVzkr0Rln5Tbhl9i//Bt9cM= Received: (qmail 78791 invoked by alias); 1 Nov 2018 17:05:43 -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 78776 invoked by uid 89); 1 Nov 2018 17:05:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm1-f48.google.com Received: from mail-wm1-f48.google.com (HELO mail-wm1-f48.google.com) (209.85.128.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Nov 2018 17:05:42 +0000 Received: by mail-wm1-f48.google.com with SMTP id l2-v6so1911350wmh.3 for ; Thu, 01 Nov 2018 10:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mittosystems.com; s=google; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=ti/RBIpLgWVy/EKRUp6O0PoaMj8QLWXg8FwZHQOPib0=; b=UGWuqEN86CWthbDFKjuLquO0NrAM7j+hxLJB/u+Go19sbDv/1J9joQMi4WU9uO+kaf F0kyj+4IgDeEZ79xjMdtAoBBKKUGND/36U71gCN2X64H+Qqqym3bCjdssoM7DWM7B775 aImhEwsEK2Owfo+MPZ1uDMqPnZXVlJpEqh5aZN/+yhvkhv3iCdLwLYiViM+Z2HJuPILr BUlObxUOzT3MGsFTAQz4tYx/DTm/7RBOGmicYkvdlwFnrZKEjfsFewsbmDV0x/eKwk1F 5aA/Bhz4dZXF1r+sOH9L45rLfXhyigvbmjXbP60TPFjZplB4TXPA4atWyOBLWQwVVBXe dKEg== Received: from [192.168.1.145] ([88.98.203.54]) by smtp.gmail.com with ESMTPSA id o17-v6sm43856624wro.2.2018.11.01.10.05.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Nov 2018 10:05:38 -0700 (PDT) To: GCC Patches From: Jozef Lawrynowicz Subject: [committed] Fix GIMPLE error in gcc.dg/tree-ssa/cunroll-13.c for 16-bit int Message-ID: <97a12774-5d1b-3369-678d-63f3b2e8c165@mittosystems.com> Date: Thu, 1 Nov 2018 17:05:38 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 X-IsSubscribed: yes The test fails for msp430-elf which has 16-bit int by default. The test uses __INT32_TYPE__ in place of int, when __SIZEOF_INT__ < 4. gcc.dg/tree-ssa/cunroll-13.c: In function 't': gcc.dg/tree-ssa/cunroll-13.c:13:1: error: type mismatch in binary expression 13 | t (struct a * a) | ^ long int long int int _1 = _2 + 1; during GIMPLE pass: omplower gcc.dg/tree-ssa/cunroll-13.c:13:1: internal compiler error: verify_gimple failed 0xba82fd verify_gimple_in_seq(gimple*) ../../gcc/tree-cfg.c:5082 0xa9d690 execute_function_todo ../../gcc/passes.c:1927 0xa9df29 execute_todo ../../gcc/passes.c:1979 There is a missing cast when the integer literal "1" is used, which causes the above error. Committed the attached patch as "obvious". 2018-11-01 Jozef Lawrynowicz gcc/testsuite * gcc.dg/tree-ssa/cunroll-13.c: Add missing cast from literal to int32. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-13.c b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-13.c index baac6b4..096380a 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/cunroll-13.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/cunroll-13.c @@ -29,7 +29,7 @@ bb_3: return; bb_4: - _1 = _2 + 1; + _1 = _2 + _Literal (i32) 1; a_6(D)->a[i_19] = _1; i_8 = i_19 + _Literal (i32) 1; if (i_8 <= _Literal (i32) 123455)