2015-03-18 04:03:11 +08:00
|
|
|
// RUN: %clang -### -c -fveclib=none %s 2>&1 | FileCheck -check-prefix CHECK-NOLIB %s
|
|
|
|
// RUN: %clang -### -c -fveclib=Accelerate %s 2>&1 | FileCheck -check-prefix CHECK-ACCELERATE %s
|
2020-10-23 04:00:34 +08:00
|
|
|
// RUN: %clang -### -c -fveclib=libmvec %s 2>&1 | FileCheck -check-prefix CHECK-libmvec %s
|
2019-06-05 09:57:57 +08:00
|
|
|
// RUN: %clang -### -c -fveclib=MASSV %s 2>&1 | FileCheck -check-prefix CHECK-MASSV %s
|
2021-05-16 19:03:36 +08:00
|
|
|
// RUN: %clang -### -c -fveclib=Darwin_libsystem_m %s 2>&1 | FileCheck -check-prefix CHECK-DARWIN_LIBSYSTEM_M %s
|
2015-03-18 04:03:11 +08:00
|
|
|
// RUN: not %clang -c -fveclib=something %s 2>&1 | FileCheck -check-prefix CHECK-INVALID %s
|
|
|
|
|
|
|
|
// CHECK-NOLIB: "-fveclib=none"
|
|
|
|
// CHECK-ACCELERATE: "-fveclib=Accelerate"
|
2020-10-23 04:00:34 +08:00
|
|
|
// CHECK-libmvec: "-fveclib=libmvec"
|
2019-06-05 09:57:57 +08:00
|
|
|
// CHECK-MASSV: "-fveclib=MASSV"
|
2021-05-16 19:03:36 +08:00
|
|
|
// CHECK-DARWIN_LIBSYSTEM_M: "-fveclib=Darwin_libsystem_m"
|
2015-03-18 04:03:11 +08:00
|
|
|
|
|
|
|
// CHECK-INVALID: error: invalid value 'something' in '-fveclib=something'
|
2015-03-18 06:13:05 +08:00
|
|
|
|
|
|
|
// RUN: %clang -fveclib=Accelerate %s -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK %s
|
|
|
|
// CHECK-LINK: "-framework" "Accelerate"
|
|
|
|
|
|
|
|
// RUN: %clang -fveclib=Accelerate %s -nostdlib -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NOSTDLIB %s
|
|
|
|
// CHECK-LINK-NOSTDLIB-NOT: "-framework" "Accelerate"
|
|
|
|
|
|
|
|
// RUN: %clang -fveclib=Accelerate %s -nodefaultlibs -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NODEFAULTLIBS %s
|
|
|
|
// CHECK-LINK-NODEFAULTLIBS-NOT: "-framework" "Accelerate"
|