diff mc-code-powerpc.c @ 845:a97cd8b97434

minor fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 06 Dec 2010 16:23:42 +0900
parents 11d784da0c7b
children 5313ed059cee
line wrap: on
line diff
--- a/mc-code-powerpc.c	Mon Dec 06 15:43:25 2010 +0900
+++ b/mc-code-powerpc.c	Mon Dec 06 16:23:42 2010 +0900
@@ -2767,9 +2767,12 @@
 	    }
 #endif
 	    reg_arg_list = list2(arg,reg_arg_list);
-	    if (car(arg)==DREGISTER)
-		use_input_reg(cadr(arg),1); /* protect from input register free */
-	    g_expr_u(assign_expr0(arg,e4,t,t)); /* XXX */
+	    if (car(arg)==DREGISTER) {
+                set_freg(cadr(arg),0);
+		g_expr_u(assign_expr0(arg,e4,t,t));
+		use_input_reg(cadr(arg),1);
+	    } else
+		g_expr_u(assign_expr0(arg,e4,t,t));
 	}
 	// structs are finished
     }