public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Savithri Venkatachalapathy <snvpathy@yahoo.com>
To: gcc-help@gcc.gnu.org
Subject: Porting GCC to new target
Date: Wed, 10 Dec 2003 08:24:00 -0000	[thread overview]
Message-ID: <20031210082436.39100.qmail@web14208.mail.yahoo.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1213 bytes --]

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/

             reply	other threads:[~2003-12-10  8:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-10  8:24 Savithri Venkatachalapathy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-12-05  5:29 Savithri Venkatachalapathy
2003-12-05 14:04 ` Ian Lance Taylor
     [not found] <20031114091925.68490.qmail@web14203.mail.yahoo.com>
2003-11-14 16:06 ` Dara Hazeghi
2003-11-21  6:13   ` Savithri Venkatachalapathy
2003-11-11  7:37 Dara Hazeghi
2003-11-12  7:28 ` Savithri Venkatachalapathy
2003-11-14  7:17   ` Dara Hazeghi
2003-11-11  4:39 Savithri Venkatachalapathy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031210082436.39100.qmail@web14208.mail.yahoo.com \
    --to=snvpathy@yahoo.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).