summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
Diffstat (limited to 'lisc')
-rw-r--r--lisc/test/sum.ssa2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/test/sum.ssa b/lisc/test/sum.ssa
index 83c4ecd..0f8a793 100644
--- a/lisc/test/sum.ssa
+++ b/lisc/test/sum.ssa
@@ -9,7 +9,7 @@ function w $sum(l %arr, w %num) {
 	%c =w cslt %n1, 0
 	jnz %c, @end, @loop1
 @loop1
-	%idx0 =l extuw %num
+	%idx0 =l extuw %n1
 	%idx1 =l mul 4, %idx0
 	%idx2 =l add %idx1, %arr
 	%w =w loadw %idx2