summary refs log tree commit diff
path: root/test/abi3.ssa
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 11:33:32 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 11:33:32 -0400
commit83506f8b758f5d5e030b3acdbf9ca88d783bc2fb (patch)
tree38a6462fe62fc2e186590804c6140053d274d2b4 /test/abi3.ssa
parent6e70be3f22f85b02cdc30ef506f289b2700ca986 (diff)
downloadroux-83506f8b758f5d5e030b3acdbf9ca88d783bc2fb.tar.gz
fix type bug in abi3 test
Diffstat (limited to 'test/abi3.ssa')
-rw-r--r--test/abi3.ssa3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/abi3.ssa b/test/abi3.ssa
index 35cade8..cc263c2 100644
--- a/test/abi3.ssa
+++ b/test/abi3.ssa
@@ -7,6 +7,7 @@ function $test() {
  @start
 	%a  =w loadw $z
 	%y  =w add %a, %a
+	%yl =l extsw %y
 
 	%s  =l alloc8 16   # allocate a :four struct
 	%s1 =l add %s, 12  # get address of the w
@@ -14,7 +15,7 @@ function $test() {
 	storew 5, %s1      # set the w
 
 	# only the last argument should be on the stack
-	%f  =l add $F, %y
+	%f  =l add $F, %yl
 	%x  =w call %f(w %y, w 1, w 2, w 3, :four %s, w 6)
 
 	# store the result in the