From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3892 invoked by alias); 22 Sep 2002 17:38:13 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 3876 invoked from network); 22 Sep 2002 17:38:04 -0000 Received: from unknown (HELO web21201.mail.yahoo.com) (216.136.129.59) by sources.redhat.com with SMTP; 22 Sep 2002 17:38:04 -0000 Message-ID: <20020922173804.6503.qmail@web21201.mail.yahoo.com> Received: from [202.165.233.2] by web21201.mail.yahoo.com via HTTP; Sun, 22 Sep 2002 10:38:04 PDT Date: Sun, 22 Sep 2002 10:38:00 -0000 From: Shehryar Humayun Subject: Difference in Opcodes To: cgen@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-q3/txt/msg00076.txt.bz2 Hi, Why is it that the opcodes generated by CGEN in arm-opc.c and the opcodes written in tc-arm.c for the same insn different. e.g. in tc-arm.c, the opcode for instruction add $rd,$rs,$rn is "0x0000" and in arm-opc.c (the one generated by CGEN), the value is "0x1800". Can any one tell me how are the opcode values generated by CGEN? Moreover, how can the two values produce the same results? Thirdly, how is the semantics field in define-normal-insn interperated and where is it output? Regards Shehryar __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com