From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24640 invoked by alias); 12 Jan 2010 10:11:32 -0000 Received: (qmail 24629 invoked by uid 22791); 12 Jan 2010 10:11:31 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jan 2010 10:11:26 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0CABOI7010613 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 12 Jan 2010 05:11:25 -0500 Received: from zebedee.pink (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0CABNVt001303; Tue, 12 Jan 2010 05:11:23 -0500 Message-ID: <4B4C4ACA.60406@redhat.com> Date: Tue, 12 Jan 2010 10:11:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: fanqifei@gmail.com CC: gcc-help@gcc.gnu.org Subject: Re: ins instruction is not produced in the assembly code (mips32r2) References: <7511306b0912180300t3dc6f0fek5db84416a49a9868@mail.gmail.com> <4B2B8FCA.8000308@redhat.com> <4B2B977F.5060708@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-01/txt/msg00125.txt.bz2 On 01/12/2010 07:28 AM, fanqifei wrote: >>> I still not understand when the insn "insv" in target.md can be used >>> in the RTL representation of the code. >> >> I already told you in my previous message. Did you not see it? > > Hi Andrew, I did see it. But that's not exactly what I want. > Is the builtin function the only way to utilize ins instruction? > According to the webpage > http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02430.html, the builtin > functions are introduced for the DSP extension. As INS instruction is > introduced in MIPS32 R2 too(not exactly the same as in DSP extension), > I guess there must be another method to utilize ins instruction of > MIPS32R2 except inline asm or builtin functions. I grepped through the gcc back-end. There is code to use insv and extv in bitfield accesses. I'm not really sure what is going on in your case. I think David Daney is right: make sure that with the latest development version of gcc and the correct options this still happens, and file a bug report. Andrew.