2018-11-27 00:38:37 +08:00
|
|
|
// RUN: %clang_cc1 -triple aarch64-linux-gnu -emit-llvm -o - %s | FileCheck %s -check-prefix=CHECKC
|
|
|
|
// RUN: %clang_cc1 -triple aarch64-linux-gnu -emit-llvm -x c++ -o - %s | FileCheck %s -check-prefix=CHECKCXX
|
|
|
|
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -verify %s
|
|
|
|
|
2019-07-18 04:41:26 +08:00
|
|
|
void __attribute__((aarch64_vector_pcs)) f(int *); // expected-warning {{'aarch64_vector_pcs' calling convention is not supported for this target}}
|
2018-11-27 00:38:37 +08:00
|
|
|
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECKC: define{{.*}} void @g(
|
|
|
|
// CHECKCXX: define{{.*}} void @_Z1gPi(
|
2018-11-27 00:38:37 +08:00
|
|
|
void g(int *a) {
|
|
|
|
|
|
|
|
// CHECKC: call aarch64_vector_pcs void @f(
|
|
|
|
// CHECKCXX: call aarch64_vector_pcs void @_Z1fPi
|
|
|
|
f(a);
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECKC: declare aarch64_vector_pcs void @f(
|
|
|
|
// CHECKCXX: declare aarch64_vector_pcs void @_Z1fPi
|
|
|
|
|
2019-07-18 04:41:26 +08:00
|
|
|
void __attribute__((aarch64_vector_pcs)) h(int *a){ // expected-warning {{'aarch64_vector_pcs' calling convention is not supported for this target}}
|
2020-12-31 16:27:11 +08:00
|
|
|
// CHECKC: define{{.*}} aarch64_vector_pcs void @h(
|
|
|
|
// CHECKCXX: define{{.*}} aarch64_vector_pcs void @_Z1hPi(
|
2018-11-27 00:38:37 +08:00
|
|
|
f(a);
|
|
|
|
}
|