ppc: ein paar testfaelle mehr (bis einschliesslich codea_abgabe_ae.0)
[uebersetzerbau-ss10.git] / gesamt_ppc / chelper.c
index ce1ab671e311fa5af3e77d16e599d9e51681938e..84ef5bac03d3f6215bc5a3758a2782aec2163058 100644 (file)
@@ -49,9 +49,8 @@ void move(char *src, char *dst)
 
 void moveimm(long imm, char *dst)
 {
-       char buf[100];
-       sprintf(buf, "$%d", imm);
-       printf("\tmovq %s, %%%s\n", buf, dst);
+       /* TODO: 32 bits... */
+       printf("\taddi %s,0,%d\n", dst, imm);
 }
 
 char *next_reg(char *s, int params)