summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-24 12:10:30 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-24 12:10:37 -0500
commiteae16f56ebede3dfbf584df5b3c968be0a8dfbab (patch)
tree24f6ade9eb188230da8b603cd87847c62d20a3b6 /lisc
parent0705d509dd90f43c95870ff49dadc1007bf0429d (diff)
downloadroux-eae16f56ebede3dfbf584df5b3c968be0a8dfbab.tar.gz
fix swapped operands on emitcopy() call
Diffstat (limited to 'lisc')
-rw-r--r--lisc/emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/emit.c b/lisc/emit.c
index f07887b..512f68d 100644
--- a/lisc/emit.c
+++ b/lisc/emit.c
@@ -407,7 +407,7 @@ emitins(Ins i, Fn *fn, FILE *f)
 		 */
 		emitf("subq %L0, %%rsp", &i, fn, f);
 		if (!req(i.to, R))
-			emitcopy(TMP(RSP), i.to, Kl, fn, f);
+			emitcopy(i.to, TMP(RSP), Kl, fn, f);
 		break;
 	}
 }