2015-03-17 20:03:11 +00: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-22 20:00:34 +00:00
|
|
|
// RUN: %clang -### -c -fveclib=libmvec %s 2>&1 | FileCheck -check-prefix CHECK-libmvec %s
|
2019-06-05 01:57:57 +00:00
|
|
|
// RUN: %clang -### -c -fveclib=MASSV %s 2>&1 | FileCheck -check-prefix CHECK-MASSV %s
|
2021-05-16 11:03:36 +00:00
|
|
|
// RUN: %clang -### -c -fveclib=Darwin_libsystem_m %s 2>&1 | FileCheck -check-prefix CHECK-DARWIN_LIBSYSTEM_M %s
|
2023-01-20 17:52:14 +00:00
|
|
|
// RUN: %clang -### -c --target=aarch64-none-none -fveclib=SLEEF %s 2>&1 | FileCheck -check-prefix CHECK-SLEEF %s
|
2023-07-04 08:43:07 +00:00
|
|
|
// RUN: %clang -### -c --target=aarch64-none-none -fveclib=ArmPL %s 2>&1 | FileCheck -check-prefix CHECK-ARMPL %s
|
2015-03-17 20:03:11 +00: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-22 20:00:34 +00:00
|
|
|
// CHECK-libmvec: "-fveclib=libmvec"
|
2019-06-05 01:57:57 +00:00
|
|
|
// CHECK-MASSV: "-fveclib=MASSV"
|
2021-05-16 11:03:36 +00:00
|
|
|
// CHECK-DARWIN_LIBSYSTEM_M: "-fveclib=Darwin_libsystem_m"
|
2023-01-20 17:52:14 +00:00
|
|
|
// CHECK-SLEEF: "-fveclib=SLEEF"
|
2023-07-04 08:43:07 +00:00
|
|
|
// CHECK-ARMPL: "-fveclib=ArmPL"
|
2015-03-17 20:03:11 +00:00
|
|
|
|
|
|
|
// CHECK-INVALID: error: invalid value 'something' in '-fveclib=something'
|
2015-03-17 22:13:05 +00:00
|
|
|
|
2023-01-20 17:52:14 +00:00
|
|
|
// RUN: not %clang --target=x86-none-none -c -fveclib=SLEEF %s 2>&1 | FileCheck -check-prefix CHECK-ERROR %s
|
2023-07-04 08:43:07 +00:00
|
|
|
// RUN: not %clang --target=x86-none-none -c -fveclib=ArmPL %s 2>&1 | FileCheck -check-prefix CHECK-ERROR %s
|
2023-01-20 17:52:14 +00:00
|
|
|
// RUN: not %clang --target=aarch64-none-none -c -fveclib=LIBMVEC-X86 %s 2>&1 | FileCheck -check-prefix CHECK-ERROR %s
|
|
|
|
// RUN: not %clang --target=aarch64-none-none -c -fveclib=SVML %s 2>&1 | FileCheck -check-prefix CHECK-ERROR %s
|
|
|
|
// CHECK-ERROR: unsupported option {{.*}} for target
|
|
|
|
|
2015-03-17 22:13:05 +00: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"
|