summary refs log tree commit diff
path: root/test/vararg1.ssa
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2017-04-08 21:40:39 -0400
committerQuentin Carbonneaux <quentin@c9x.me>2017-04-08 22:10:01 -0400
commitf4ddc9e54ed589b8d168cd39ebf2a5572b32431b (patch)
tree2d039c10d5ab9d17c1274fbffd75d793a3e3b1ad /test/vararg1.ssa
parente4bc35149cc790e3ad034f6643f75c33765b142c (diff)
downloadroux-f4ddc9e54ed589b8d168cd39ebf2a5572b32431b.tar.gz
enable arm64 tests
The vararg tests had to be changed because
va_list is 32-bit wide on arm.  The astute
reader will notice that the way we pass
va_list values is wrong, we should be using
the ':valist' type as defined below instead
of 'l'.  But eh, that works for now, because
of the ABI.

    type :valist = align 8 { 32 }
Diffstat (limited to 'test/vararg1.ssa')
-rw-r--r--test/vararg1.ssa4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/vararg1.ssa b/test/vararg1.ssa
index 28b3d0e..393743c 100644
--- a/test/vararg1.ssa
+++ b/test/vararg1.ssa
@@ -1,7 +1,7 @@
 export
 function d $f(l %x, ...) {
 @start
-	%vp =l alloc8 24
+	%vp =l alloc8 32
 	vastart %vp
 	%i =l vaarg %vp
 	%n =d vaarg %vp
@@ -11,7 +11,7 @@ function d $f(l %x, ...) {
 export
 function w $g(l %fmt, ...) {
 @start
-	%vp =l alloc8 24
+	%vp =l alloc8 32
 	vastart %vp
 	%r =w call $vprintf(l %fmt, l %vp)
 	ret %r