From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16863 invoked by alias); 5 Jun 2010 15:29:36 -0000 Received: (qmail 16853 invoked by uid 22791); 5 Jun 2010 15:29:36 -0000 X-SWARE-Spam-Status: No, hits=0.8 required=5.0 tests=AWL,BAYES_50,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 05 Jun 2010 15:29:32 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OKvJS-0008TG-8v for gcc@gcc.gnu.org; Sat, 05 Jun 2010 08:29:30 -0700 Message-ID: <28790054.post@talk.nabble.com> Date: Sat, 05 Jun 2010 18:15:00 -0000 From: yazdanbakhsh To: gcc@gcc.gnu.org Subject: Re: Question about Machine Description In-Reply-To: <28503521.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <63281.24.163.112.200.1128386718.squirrel@webmail.ncsu.edu> <28433505.post@talk.nabble.com> <28439702.post@talk.nabble.com> <28447744.post@talk.nabble.com> <28449607.post@talk.nabble.com> <28476454.post@talk.nabble.com> <28503521.post@talk.nabble.com> X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2010-06/txt/msg00245.txt.bz2 Hi, I want to exclude all immediate or instruction. I did this by the following define_insn /------------------------------------------------------------------------------ (define_insn "iorsi3" [(set (match_operand:SI 0 "register_operand" "=d,d") (ior:SI (match_operand:SI 1 "uns_arith_operand" "%d,d") (match_operand:SI 2 "uns_arith_operand" "d,K"))) (clobber (match_scratch:SI 3 ""))] "" "@ or\\t%0,%1,%2 addi\\t%3,0x0,%x2\;or\\t%0,%1,%3" [(set_attr "type" "arith") (set_attr "mode" "SI") (set_attr "length" "1,2")]) /------------------------------------------------------------------------------ I use a temporary register 3, to store intermediate values. but after compilation the following error happen: ./libgcc2.c:669: internal error--unrecognizable insn: (insn 787 786 780 (set (reg:SI 104) (ior:SI (reg:SI 104) (const_int 65535))) -1 (insn_list 786 (nil)) (expr_list:REG_EQUAL (const_int 16777215) (nil))) xgcc: Internal compiler error: program cc1 got fatal signal 6 make: *** [libgcc2.a] Error 1 //---------------------------------------------------------------------- I appreciate any help. Bestr -- View this message in context: http://old.nabble.com/Question-about-Machine-Description-tp1026428p28790054.html Sent from the gcc - Dev mailing list archive at Nabble.com.