Example #1
0
                                /* { int lab; lab = label(); gen("orl\t%eax,%eax;"); lgen("%s\t%c%d", how, lab); lgen("%s\t%c%d", "jmp", n); genlab(lab); } */
void cgbrtrue(int n)	{ cgbr("beq", n); } /* cgbr("jz", n); } */
void cgbrfalse(int n)	{ cgbr("bne", n); } /* cgbr("jnz", n); } */
void cgjump(int n)	{ lgen("%s(%c%d);", "b", n); } /* lgen("%s\t%c%d", "jmp", n); } */
void cgldswtch(int n)	{ lgen("%s(r2, %c%d);", "movi", n); } /* lgen("%s\t$%c%d,%%edx", "movl", n); } */
void cgcalswtch(void)	{ gen("b(switch);"); } /* gen("jmp\tswitch;"); } */
void cgcase(int v, int l)	{ lgen2("dc(%d); dc(%c%d);", v, l); } /* lgen2(".long\t%d,%c%d", v, l); } */
Example #2
0
File: cg-syn.c Project: jezze/gaz
void cgcase(int v, int l)
{

    lgen2(".long\t%d,%c%d", v, l);

}
Example #3
0
File: cg-syn.c Project: jezze/gaz
void cgincps(int a, int v)
{

    lgen2("addl\t$%d,%c%d", v, a);

}
Example #4
0
File: cg-syn.c Project: jezze/gaz
void cgdecps(int a, int v)
{

    lgen2("subl\t$%d,%c%d", v, a);

}
Example #5
0
File: cg-syn.c Project: jezze/gaz
void cgcase(int v, int l)
{

    lgen2("dw\t%d,%c%d", v, l);

}