projects
/
uebersetzerbau-ss10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ppc: ersten zwei codeb testfaelle gehen (assign)
[uebersetzerbau-ss10.git]
/
gesamt_ppc
/
chelper.c
diff --git
a/gesamt_ppc/chelper.c
b/gesamt_ppc/chelper.c
index ce1ab671e311fa5af3e77d16e599d9e51681938e..94d3f9179b607f7d6b3823172b24573faad18f3e 100644
(file)
--- a/
gesamt_ppc/chelper.c
+++ b/
gesamt_ppc/chelper.c
@@
-43,15
+43,14
@@
void move(char *src, char *dst)
{
if(src == (char*) NULL) return;
if(strcmp(src,dst) != 0) {
{
if(src == (char*) NULL) return;
if(strcmp(src,dst) != 0) {
- printf("\tmr %s,
%s\n", dst, src);
+ printf("\tmr %s,%s\n", dst, src);
}
}
void moveimm(long imm, 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("\tli %s,%d\n", dst, imm);
}
char *next_reg(char *s, int params)
}
char *next_reg(char *s, int params)