From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18440 invoked by alias); 19 Mar 2010 15:47:28 -0000 Received: (qmail 18431 invoked by uid 22791); 19 Mar 2010 15:47:27 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Mar 2010 15:47:13 +0000 Received: from kpbe14.cbf.corp.google.com (kpbe14.cbf.corp.google.com [172.25.105.78]) by smtp-out.google.com with ESMTP id o2JFlBiQ007515 for ; Fri, 19 Mar 2010 08:47:11 -0700 Received: from bwz3 (bwz3.prod.google.com [10.188.26.3]) by kpbe14.cbf.corp.google.com with ESMTP id o2JFkhWe003351 for ; Fri, 19 Mar 2010 08:47:09 -0700 Received: by bwz3 with SMTP id 3so3378426bwz.29 for ; Fri, 19 Mar 2010 08:47:09 -0700 (PDT) Received: by 10.204.36.70 with SMTP id s6mr256957bkd.22.1269013629218; Fri, 19 Mar 2010 08:47:09 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-126-240.mtv.corp.google.com [172.22.126.240]) by mx.google.com with ESMTPS id 16sm745168bwz.5.2010.03.19.08.47.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Mar 2010 08:47:08 -0700 (PDT) To: Rajiv KI Cc: gcc-help@gcc.gnu.org Subject: Re: mode of CONST_INT References: <27945040.post@talk.nabble.com> From: Ian Lance Taylor Date: Fri, 19 Mar 2010 15:50:00 -0000 In-Reply-To: <27945040.post@talk.nabble.com> (Rajiv KI's message of "Thu\, 18 Mar 2010 05\:45\:07 -0700 \(PDT\)") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00241.txt.bz2 Rajiv KI writes: > Mode of RTL expression 'CONST_INT' is VOIDmode. Is there any way i can make > its mode to SImode or any other mode even. > > I have tried PUT_MODE macro.As CONST_INT has only one operand as 'w' (wide > integer).I think due to that It was not effective. > > Please help me in resolving this. By definition CONST_INT rtxes have no mode. They take on whatever mode the context requires. This is indeed awkward in some cases, and sometimes requires maintaining the mode separately. Ian