From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4859 invoked by alias); 18 Jul 2005 08:57:28 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 4815 invoked by uid 22791); 18 Jul 2005 08:57:19 -0000 Received: from monty-python.gnu.org (HELO monty-python.gnu.org) (199.232.76.173) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 18 Jul 2005 08:57:19 +0000 Received: from [62.209.45.166] (helo=mail8-fra-R.bigfish.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DuRWo-0007xP-T0 for gcc@gcc.gnu.org; Mon, 18 Jul 2005 05:03:11 -0400 Received: from mail8-fra.bigfish.com (localhost.localdomain [127.0.0.1]) by mail8-fra-R.bigfish.com (Postfix) with ESMTP id A22CC4225CE; Mon, 18 Jul 2005 08:52:56 +0000 (UTC) X-BigFish: V Received: by mail8-fra (MessageSwitch) id 1121676776606085_11703; Mon, 18 Jul 2005 08:52:56 +0000 (UCT) Received: from darwin.altera.com (darwin.altera.com [66.35.227.3]) by mail1-fra.bigfish.com (Postfix) with ESMTP id D659942264F; Mon, 18 Jul 2005 08:52:55 +0000 (UTC) Received: from sunrise.altera.com (sunrise [137.57.1.1]) by darwin.altera.com (8.11.7p1+Sun/8.11.7) with ESMTP id j6I8i4k29188; Mon, 18 Jul 2005 01:44:04 -0700 (PDT) Received: from sj-gw02.altera.priv.altera.com (exchange [137.57.216.60]) by sunrise.altera.com (8.12.9/8.12.9) with ESMTP id j6I8qsK4004788; Mon, 18 Jul 2005 01:52:54 -0700 (PDT) Received: from uk-ismsg01.altera.priv.altera.com ([137.57.183.230]) by sj-gw02.altera.priv.altera.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 18 Jul 2005 01:52:54 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: on nios2 difine_insn indirect_call Date: Mon, 18 Jul 2005 08:57:00 -0000 Message-ID: <0E9C0AAF2C9DAD4C8BEFB37FB59D964C2E1D36@uk-ismsg01.altera.priv.altera.com> From: "Jonah Graham" To: Cc: X-SW-Source: 2005-07/txt/msg00763.txt.bz2 Hi Timothy,=20 Unfortunately the Nios II port of GCC is not (yet) in the gcc tree so most people don't have access to it. The reason it is parallel is that if define_insn contains more than one element, that defines a parallel. Have a look at: http://gcc.gnu.org/onlinedocs/gccint/Patterns.html Jonah =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D jgraham@altera.com Altera European Technology Centre www.altera.com/nios2=20 =09 -------- Original Message --------=20 Subject: on nios2 difine_insn indirect_call=09 Date: Mon, 18 Jul 2005 14:47:59 +0800=09 From: Liu Haibin =20=09 Reply-To: Liu Haibin =20=09 To: gcc@gcc.gnu.org=09 Hi,=20 =09 The nios2.md has a define_insn "indirect_call" =09 (define_insn "indirect_call" [(call (mem:QI (match_operand:SI 0 "register_operand" "r")) (match_operand 1 "" "")) (clobber (reg:SI RA_REGNO))] "" "callr\\t%0" [(set_attr "type" "control")]) =09 But I find that in test.c.26.flow2, there is such a code. =09 (call_insn 41 37 42 1 0x101e17b0 (parallel [ (call (mem:QI (reg/f:SI 3 r3 [58]) [0 S1 A8]) (const_int 0 [0x0])) (clobber (reg:SI 31 ra)) ]) 41 {indirect_call} (insn_list 40 (insn_list 39 (nil))) (expr_list:REG_DEAD (reg:SI 4 r4) (expr_list:REG_DEAD (reg/f:SI 3 r3 [58]) (expr_list:REG_UNUSED (reg:SI 31 ra) (nil)))) (expr_list (use (reg:SI 4 r4)) (nil))) =09 Why is there a "parallel" for indirect_call in .26.flow2 but no "parallel" in define_insn indirect_call? Does it mean that the "define_insn indirect_call" in md file impilcitly has "parallel" surrounding it? =09 =09 Regards, Timothy =09 =09