summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-25 20:56:18 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-30 13:20:42 -0400
commita9dc36e0ebd151ca96bca1a7ffb5ecac49ee6bcf (patch)
treead71083e6517aac713fd4a259383b7faea2145ca /lisc
parentd272f0896bb188b941abef389760f71eb61ea725 (diff)
downloadroux-a9dc36e0ebd151ca96bca1a7ffb5ecac49ee6bcf.tar.gz
change extension in sum example
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 3578dd7..575daf6 100644
--- a/lisc/test/sum.ssa
+++ b/lisc/test/sum.ssa
@@ -9,7 +9,7 @@ function w $sum(l %arr, w %num) {
 	%c =w csle %n1, 0
 	jnz %c, @end, @loop1
 @loop1
-	%idx0 =l extuw %n2
+	%idx0 =l extsw %n2
 	%idx1 =l mul 4, %idx0
 	%idx2 =l add %idx1, %arr
 	%w =w loadw %idx2