1 // REQUIRES: aarch64-registered-target
2 // RUN: not %clang_cc1 -triple aarch64-linux-gnu -target-feature +sve -emit-llvm -o - %s 2>&1 | FileCheck %s
3 // RUN: not %clang_cc1 -triple arm64-apple-ios7 -target-abi darwinpcs -target-feature +sve -emit-llvm -o - %s 2>&1 | FileCheck %s
5 // CHECK: Passing SVE types to variadic functions is currently not supported
10 double foo(char *str
, ...) {
16 v
= va_arg(ap
, svfloat64_t
);
17 x
= va_arg(ap
, double);
20 return x
+ svaddv(svptrue_b8(), v
);