You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.2 KiB
22 lines
1.2 KiB
4 months ago
|
// 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
|
||
|
// RUN: %clang -### -c -fveclib=libmvec %s 2>&1 | FileCheck -check-prefix CHECK-libmvec %s
|
||
|
// RUN: %clang -### -c -fveclib=MASSV %s 2>&1 | FileCheck -check-prefix CHECK-MASSV %s
|
||
|
// RUN: not %clang -c -fveclib=something %s 2>&1 | FileCheck -check-prefix CHECK-INVALID %s
|
||
|
|
||
|
// CHECK-NOLIB: "-fveclib=none"
|
||
|
// CHECK-ACCELERATE: "-fveclib=Accelerate"
|
||
|
// CHECK-libmvec: "-fveclib=libmvec"
|
||
|
// CHECK-MASSV: "-fveclib=MASSV"
|
||
|
|
||
|
// CHECK-INVALID: error: invalid value 'something' in '-fveclib=something'
|
||
|
|
||
|
// 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"
|