|
1 | 1 | // RUN: %clang -### -c -fveclib=none %s 2>&1 | FileCheck --check-prefix=CHECK-NOLIB %s
|
2 | 2 | // RUN: %clang -### -c -fveclib=Accelerate %s 2>&1 | FileCheck --check-prefix=CHECK-ACCELERATE %s
|
3 | 3 | // RUN: %clang -### -c --target=x86_64-unknown-linux-gnu -fveclib=libmvec %s 2>&1 | FileCheck --check-prefix=CHECK-libmvec %s
|
| 4 | +// RUN: %clang -### -c --target=x86_64-unknown-linux-gnu -fveclib=AMDLIBM %s 2>&1 | FileCheck --check-prefix=CHECK-AMDLIBM %s |
4 | 5 | // RUN: %clang -### -c -fveclib=MASSV %s 2>&1 | FileCheck --check-prefix=CHECK-MASSV %s
|
5 | 6 | // RUN: %clang -### -c -fveclib=Darwin_libsystem_m %s 2>&1 | FileCheck --check-prefix=CHECK-DARWIN_LIBSYSTEM_M %s
|
6 | 7 | // RUN: %clang -### -c --target=aarch64 -fveclib=SLEEF %s 2>&1 | FileCheck --check-prefix=CHECK-SLEEF %s
|
|
11 | 12 | // CHECK-NOLIB: "-fveclib=none"
|
12 | 13 | // CHECK-ACCELERATE: "-fveclib=Accelerate"
|
13 | 14 | // CHECK-libmvec: "-fveclib=libmvec"
|
| 15 | +// CHECK-AMDLIBM: "-fveclib=AMDLIBM" |
14 | 16 | // CHECK-MASSV: "-fveclib=MASSV"
|
15 | 17 | // CHECK-DARWIN_LIBSYSTEM_M: "-fveclib=Darwin_libsystem_m"
|
16 | 18 | // CHECK-SLEEF: "-fveclib=SLEEF"
|
|
23 | 25 | // RUN: not %clang --target=x86 -c -fveclib=ArmPL %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
|
24 | 26 | // RUN: not %clang --target=aarch64 -c -fveclib=libmvec %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
|
25 | 27 | // RUN: not %clang --target=aarch64 -c -fveclib=SVML %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s
|
| 28 | +// RUN: not %clang --target=aarch64 -c -fveclib=AMDLIBM %s 2>&1 | FileCheck --check-prefix=CHECK-ERROR %s |
26 | 29 | // CHECK-ERROR: unsupported option {{.*}} for target
|
27 | 30 |
|
28 | 31 | // RUN: %clang -fveclib=Accelerate %s -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK %s
|
|
40 | 43 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=libmvec -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-LIBMVEC %s
|
41 | 44 | // CHECK-LTO-LIBMVEC: "-plugin-opt=-vector-library=LIBMVEC"
|
42 | 45 |
|
| 46 | +// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=AMDLIBM -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-AMDLIBM %s |
| 47 | +// CHECK-LTO-AMDLIBM: "-plugin-opt=-vector-library=AMDLIBM" |
| 48 | + |
43 | 49 | // RUN: %clang -### --target=powerpc64-unknown-linux-gnu -fveclib=MASSV -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-MASSV %s
|
44 | 50 | // CHECK-LTO-MASSV: "-plugin-opt=-vector-library=MASSV"
|
45 | 51 |
|
|
62 | 68 | // CHECK-ERRNO-LIBMVEC: "-fveclib=libmvec"
|
63 | 69 | // CHECK-ERRNO-LIBMVEC-SAME: "-fmath-errno"
|
64 | 70 |
|
| 71 | +// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=AMDLIBM %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-AMDLIBM %s |
| 72 | +// CHECK-ERRNO-AMDLIBM: "-fveclib=AMDLIBM" |
| 73 | +// CHECK-ERRNO-AMDLIBM-SAME: "-fmath-errno" |
| 74 | + |
65 | 75 | // RUN: %clang -### --target=powerpc64-unknown-linux-gnu -fveclib=MASSV %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-MASSV %s
|
66 | 76 | // CHECK-ERRNO-MASSV: "-fveclib=MASSV"
|
67 | 77 | // CHECK-ERRNO-MASSV-SAME: "-fmath-errno"
|
|
0 commit comments