diff mc-code-i64.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 4640447d80ef
line wrap: on
line diff
--- a/mc-code-i64.c	Mon Dec 06 15:43:25 2010 +0900
+++ b/mc-code-i64.c	Mon Dec 06 16:23:42 2010 +0900
@@ -3705,7 +3705,8 @@
 void code_dassign_dregister(int e,int d,int f)
 {
     use_float(d,f);
-    printf("\tmovapd %s,%s\n",fregister_name(f),fregister_name(e)); 
+    if (f!=e)
+	printf("\tmovapd %s,%s\n",fregister_name(f),fregister_name(e)); 
 }
 
 void code_dassign(int e2,int freg,int d)
@@ -4413,7 +4414,8 @@
 void code_lassign(int e1,int e2)
 {
     use_longlong(e2);
-    printf("\tmovq %s,(%s)\n",register_name(e2,0),register_name(e1,0));
+    if (e2!=e1)
+	printf("\tmovq %s,(%s)\n",register_name(e2,0),register_name(e1,0));
 }
 
 void code_lassign_gvar(int e1,int e2)