This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: SH: cmpeqdi splitter messes up the CFG
On Aug 30, 2000, Richard Henderson <rth@cygnus.com> wrote:
> On Wed, Aug 30, 2000 at 02:37:20PM -0300, Alexandre Oliva wrote:
>> Ok. How about `.Leqsi%='?
> Or like prologue_stack_probe_loop in alpha.md, which
> emits normal seeming labels itself.
Yep, I thought of doing something like that, using C code to output
the asms, but my intention was to keep the ASM output code as similar
as possible to that of cmpeqsi_t, which is:
"@
tst %0,%0
cmp/eq %1,%0
cmp/eq %1,%0")
In a perfect world, I'd output the branch opcode, the asm output of
cmpeqsi_t and then the label. Is there any way to output the assembly
code of an insn pretending it's another insn? Then, the output
statement of cmpeqsi_and_t would be:
"*
{
output_asm_insn (\"bt .+4\", 0); /* I'll use this to avoid the label. */
output_cmpeqsi_t (operands); /* This is what I'd like to do. */
}
"
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me