From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5129 invoked by alias); 10 Dec 2003 08:24:41 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 5108 invoked from network); 10 Dec 2003 08:24:37 -0000 Received: from unknown (HELO web14208.mail.yahoo.com) (216.136.173.72) by sources.redhat.com with SMTP; 10 Dec 2003 08:24:37 -0000 Message-ID: <20031210082436.39100.qmail@web14208.mail.yahoo.com> Received: from [128.193.88.214] by web14208.mail.yahoo.com via HTTP; Wed, 10 Dec 2003 00:24:36 PST Date: Wed, 10 Dec 2003 08:24:00 -0000 From: Savithri Venkatachalapathy Subject: Porting GCC to new target To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-12/txt/msg00094.txt.bz2 Hi, I have a question regarding branch implementation in the .md file. I have a cmpsi instructiosn which stores the operands 0 and 1 in static variables branch_op0 and branch_op1. And in the branch instruction definition operand0 is the label. I want to concatenate the variable branch_op0 with the label and output as: b_eq branch_op0 label So I am using: char buffer[80] =\"\" ; rtx xoperands[1]; L1: xoperands[0] = operands[0]; ... .. ... strcat(buffer,\"%!b_%b1\"); L2: operands[0] = branch_op[0]; strcat(buffer,\" %0\"); L3: operands[0] = xoperands[0]; strcat(buffer,\" %0\"); output_asm_insn (buffer, operands); I was expecting the output to be: b_eq branch_op label (as per Line1, 2 and 3) instead the output is: b_eq label label Could any one tell me how to get this right. Thanks in advance, savi ===== ------------------------------------------------------------------------------- “Personality is born out of pain. It is the fire shut up in the flint.” --- Yeats -------------------------------------------------------------------------------- __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/