Passing arguments to varags functions under the SPARC v9 ABI.
[oota-llvm.git] / test / CodeGen / SPARC / varargs.ll
index 2f832943a7f615dd6be7a111dc9d237c864611a7..b13f90e6ca71dc7bdb86deece9f8b1fc51c9556c 100644 (file)
@@ -60,3 +60,16 @@ sw.default:
 }
 
 declare void @llvm.va_start(i8*)
+
+@.str = private unnamed_addr constant [4 x i8] c"abc\00", align 1
+
+; CHECK: call_1d
+; The fixed-arg double goes in %d2, the second goes in %o2.
+; CHECK: sethi 1048576
+; CHECK: , %o2
+; CHECK: , %f2
+define i32 @call_1d() #0 {
+entry:
+  %call = call double (i8*, double, ...)* @varargsfunc(i8* undef, double 1.000000e+00, double 2.000000e+00)
+  ret i32 1
+}