public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Porting GCC to new target, branch implementation
@ 2003-12-12  0:15 Savithri Venkatachalapathy
  0 siblings, 0 replies; only message in thread
From: Savithri Venkatachalapathy @ 2003-12-12  0:15 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1267 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 stores the result of compare(op0,op1) in register
cc0.

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

Please 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/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-12  0:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12  0:15 Porting GCC to new target, branch implementation Savithri Venkatachalapathy

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).