|
36 | 36 | /* Verify that the correct vector library is passed to LTO flags. */ |
37 | 37 |
|
38 | 38 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=LIBMVEC -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-LIBMVEC %s |
39 | | -// CHECK-LTO-LIBMVEC: "-fmath-errno" |
40 | 39 | // CHECK-LTO-LIBMVEC: "-plugin-opt=-vector-library=LIBMVEC-X86" |
41 | 40 |
|
42 | 41 | // RUN: %clang -### --target=powerpc64-unknown-linux-gnu -fveclib=MASSV -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-MASSV %s |
43 | | -// CHECK-LTO-MASSV: "-fmath-errno" |
44 | 42 | // CHECK-LTO-MASSV: "-plugin-opt=-vector-library=MASSV" |
45 | 43 |
|
46 | 44 | // RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=SVML -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-SVML %s |
47 | | -// CHECK-LTO-SVML: "-fmath-errno" |
48 | 45 | // CHECK-LTO-SVML: "-plugin-opt=-vector-library=SVML" |
49 | 46 |
|
50 | 47 | // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=SLEEF -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-SLEEF %s |
51 | | -// CHECK-LTO-SLEEF-NOT: "-fmath-errno" |
52 | 48 | // CHECK-LTO-SLEEF: "-plugin-opt=-vector-library=sleefgnuabi" |
53 | | -// CHECK-LTO-SLEEF-NOT: "-fmath-errno" |
54 | 49 |
|
55 | 50 | // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL -flto %s 2>&1 | FileCheck --check-prefix=CHECK-LTO-ARMPL %s |
56 | | -// CHECK-LTO-ARMPL-NOT: "-fmath-errno" |
57 | 51 | // CHECK-LTO-ARMPL: "-plugin-opt=-vector-library=ArmPL" |
58 | | -// CHECK-LTO-ARMPL-NOT: "-fmath-errno" |
| 52 | + |
| 53 | + |
| 54 | +/* Verify that -fmath-errno is set correctly for the vector library. */ |
| 55 | + |
| 56 | +// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=LIBMVEC %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-LIBMVEC %s |
| 57 | +// CHECK-ERRNO-LIBMVEC: "-fveclib=LIBMVEC" |
| 58 | +// CHECK-ERRNO-LIBMVEC-SAME: "-fmath-errno" |
| 59 | + |
| 60 | +// RUN: %clang -### --target=powerpc64-unknown-linux-gnu -fveclib=MASSV %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-MASSV %s |
| 61 | +// CHECK-ERRNO-MASSV: "-fveclib=MASSV" |
| 62 | +// CHECK-ERRNO-MASSV-SAME: "-fmath-errno" |
| 63 | + |
| 64 | +// RUN: %clang -### --target=x86_64-unknown-linux-gnu -fveclib=SVML %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-SVML %s |
| 65 | +// CHECK-ERRNO-SVML: "-fveclib=SVML" |
| 66 | +// CHECK-ERRNO-SVML-SAME: "-fmath-errno" |
| 67 | + |
| 68 | +// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=SLEEF %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-SLEEF %s |
| 69 | +// CHECK-ERRNO-SLEEF-NOT: "-fmath-errno" |
| 70 | +// CHECK-ERRNO-SLEEF: "-fveclib=SLEEF" |
| 71 | +// CHECK-ERRNO-SLEEF-NOT: "-fmath-errno" |
| 72 | + |
| 73 | +// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL %s 2>&1 | FileCheck --check-prefix=CHECK-ERRNO-ARMPL %s |
| 74 | +// CHECK-ERRNO-ARMPL-NOT: "-fmath-errno" |
| 75 | +// CHECK-ERRNO-ARMPL: "-fveclib=ArmPL" |
| 76 | +// CHECK-ERRNO-ARMPL-NOT: "-fmath-errno" |
| 77 | + |
| 78 | +// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL -fmath-errno %s 2>&1 | FileCheck --check-prefix=CHECK-FORCE-ERRNO-ARMPL %s |
| 79 | +// CHECK-FORCE-ERRNO-ARMPL: "-fveclib=ArmPL" |
| 80 | +// CHECK-FORCE-ERRNO-ARMPL-SAME: "-fmath-errno" |
| 81 | + |
| 82 | +// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=SLEEF -fmath-errno %s 2>&1 | FileCheck --check-prefix=CHECK-FORCE-ERRNO-SLEEF %s |
| 83 | +// CHECK-FORCE-ERRNO-SLEEF: "-fveclib=SLEEF" |
| 84 | +// CHECK-FORCE-ERRNO-SLEEF-SAME: "-fmath-errno" |
0 commit comments