From patchwork Fri May 30 15:26:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramana Radhakrishnan X-Patchwork-Id: 354228 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1BBBD1400BE for ; Sat, 31 May 2014 01:26:27 +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 :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=CpPQ/NamdVH7yO19CKuJ1K3CwhgenLa+kAM5Wjoyr+UoY8 cKbZMwJPUw6kbFcmHhNcr/uSrCgYKwbsiamrMw+4XbZBsUkbCLmyMX2xOQ8NfN13 cgRZvYi/qDfCt/Jemb14nYTWpjV01e+PqBUdYqiAfvLI7RTYd9CSunj4oyUBg= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=R/EdfwTpuJAaJ9okV2MJyezahKc=; b=hdRBYmQ57+PEdB8wywrt uXZlONR3eI7e7Xz6Rwa2WGX1ieCEocT5KawJqXabe7G06zraBBaNrt5PBDdcGOfY R3jeohG0Hy7TfBHBR/VOQzWWz4tU/s/zIGsgtvJ/EuXrznMnIA5q/XiI0ef6NNKd w36CACq+khN9BHHfaXuDens= Received: (qmail 12825 invoked by alias); 30 May 2014 15:26:20 -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 12811 invoked by uid 89); 30 May 2014 15:26:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: collaborate-mta1.arm.com Received: from fw-tnat.austin.arm.com (HELO collaborate-mta1.arm.com) (217.140.110.23) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 May 2014 15:26:18 +0000 Received: from [10.1.209.147] (e104577-lin.cambridge.arm.com [10.1.209.147]) by collaborate-mta1.arm.com (Postfix) with ESMTPS id 649E413F7F3 for ; Fri, 30 May 2014 10:26:16 -0500 (CDT) Message-ID: <5388A317.2050201@arm.com> Date: Fri, 30 May 2014 16:26:15 +0100 From: Ramana Radhakrishnan User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org ;" Subject: [Patch ARM] PR 61154 - Define TARGET_SUPPORTS_WIDE_INT. X-IsSubscribed: yes Hi, This is the simplest patch to fix PR61154 that came after the wide-int merge. I've got a patch stack that tries to audit the use of GEN_INT vs gen_int_mode and the use of CONST_DOUBLE with VOIDmode in the backend but it's still not safe to go and TBH I'd like to deal with that separately given the current state of brokenness in the tree. Tested with a bootstrap again today on top of 211072 and earlier regression tests showed no regressions. Will apply once regression tests finish. regards Ramana Ramana Radhakrishnan * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define. * config/arm/arm.md (movdi splitter): Replace const_double_operand with immediate_operand. Index: gcc/config/arm/arm.h =================================================================== --- gcc/config/arm/arm.h (revision 211084) +++ gcc/config/arm/arm.h (working copy) @@ -2395,5 +2395,5 @@ extern const char *host_detect_local_cpu #endif #define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS - +#define TARGET_SUPPORTS_WIDE_INT 1 #endif /* ! GCC_ARM_H */ Index: gcc/config/arm/arm.md =================================================================== --- gcc/config/arm/arm.md (revision 211084) +++ gcc/config/arm/arm.md (working copy) @@ -5990,7 +5990,7 @@ (define_insn "*arm_movdi" (define_split [(set (match_operand:ANY64 0 "arm_general_register_operand" "") - (match_operand:ANY64 1 "const_double_operand" ""))] + (match_operand:ANY64 1 "immediate_operand" ""))] "TARGET_32BIT && reload_completed && (arm_const_double_inline_cost (operands[1])