Mercurial > hg > CbC > old > device
diff mc-code-powerpc.c @ 599:df04bc5fd5fe
*** empty log message ***
author | kono |
---|---|
date | Thu, 26 Jan 2006 15:19:55 +0900 |
parents | f49c825920c4 |
children | 2baddc88097d |
line wrap: on
line diff
--- a/mc-code-powerpc.c Tue Jan 24 10:55:00 2006 +0900 +++ b/mc-code-powerpc.c Thu Jan 26 15:19:55 2006 +0900 @@ -90,9 +90,6 @@ #define MIN_TMP_REG 3 #define MAX_TMP_REG 11 -#define PTRC_REG 3 -#define REG_VAR 2 - #define FREG_VAR_BASE 31 #define FREG_VAR_MIN 20 #define MIN_TMP_FREG 1 @@ -1308,6 +1305,8 @@ // printf("## 0x%08x\n",e2); if (-32768<e2&&e2<32768) printf("\tli %s,%d\n",crn,e2); + else if ((e2&0xffff)==0) + printf("\tlis %s,ha16(%d)\n",crn,e2); else { printf("\tlis %s,ha16(%d)\n",crn,e2); printf("\taddi %s,%s,lo16(%d)\n",crn,crn,e2);