diff mc-code-powerpc.c @ 187:dffcccf8b1cb

nested COND
author kono
date Mon, 01 Dec 2003 19:06:30 +0900
parents 6391432ca002
children f53d70110377
line wrap: on
line diff
--- a/mc-code-powerpc.c	Mon Dec 01 15:36:22 2003 +0900
+++ b/mc-code-powerpc.c	Mon Dec 01 19:06:30 2003 +0900
@@ -1999,20 +1999,17 @@
     }
 }
 
+int
+code_get_fixed_creg(int reg,int type) {
+    return creg;
+}
+
 void
-code_set_fixed_creg(int mode,int type) {
+code_set_fixed_creg(int reg,int mode,int type) {
     if (type==FLOAT||type==DOUBLE) {
-	if (cond_freg== -1) {
-	    cond_freg = get_dregister_var(0,1);
-	    if(car(cond_freg)!=DREGISTER) error(-1);
-	}
-	set_freg(cadr(cond_freg),mode);
+	set_freg(reg,mode);
     } else {
-	if (cond_reg== -1) {
-	    cond_reg = get_register_var(0);
-	    if(car(cond_reg)!=REGISTER) error(-1);
-	}
-	set_creg(cadr(cond_reg),mode);
+	set_creg(reg,mode);
     }
 }