summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-23 17:31:56 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-30 13:20:42 -0400
commitaa5682480c30044c2ffe807ce1316ef7cdcb5e24 (patch)
tree0e7049a3bf32322d19ab56ef9f6516919ad577ff /lisc
parentab7a5c277a3ff8a9226151b0ccceae201c4ff1bc (diff)
downloadroux-aa5682480c30044c2ffe807ce1316ef7cdcb5e24.tar.gz
oops, another bug in sum.ssa
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