|
77 | 77 |
|
78 | 78 | // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL -fmath-errno %s 2>&1 | FileCheck --check-prefix=CHECK-REENABLE-ERRNO-ARMPL %s
|
79 | 79 | // CHECK-REENABLE-ERRNO-ARMPL: math errno enabled by '-fmath-errno' after it was implicitly disabled by '-fveclib=ArmPL', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib]
|
80 |
| - |
81 | 80 | // CHECK-REENABLE-ERRNO-ARMPL: "-fveclib=ArmPL"
|
82 | 81 | // CHECK-REENABLE-ERRNO-ARMPL-SAME: "-fmath-errno"
|
83 | 82 |
|
84 | 83 | // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=SLEEF -fmath-errno %s 2>&1 | FileCheck --check-prefix=CHECK-REENABLE-ERRNO-SLEEF %s
|
85 | 84 | // CHECK-REENABLE-ERRNO-SLEEF: math errno enabled by '-fmath-errno' after it was implicitly disabled by '-fveclib=SLEEF', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib]
|
86 |
| - |
87 | 85 | // CHECK-REENABLE-ERRNO-SLEEF: "-fveclib=SLEEF"
|
88 | 86 | // CHECK-REENABLE-ERRNO-SLEEF-SAME: "-fmath-errno"
|
89 | 87 |
|
90 | 88 | // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL -fno-fast-math %s 2>&1 | FileCheck --check-prefix=CHECK-REENABLE-ERRNO-NFM %s
|
91 | 89 | // CHECK-REENABLE-ERRNO-NFM: math errno enabled by '-fno-fast-math' after it was implicitly disabled by '-fveclib=ArmPL', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib]
|
92 |
| - |
93 | 90 | // CHECK-REENABLE-ERRNO-NFM: "-fveclib=ArmPL"
|
94 | 91 | // CHECK-REENABLE-ERRNO-NFM-SAME: "-fmath-errno"
|
95 | 92 |
|
96 | 93 | // RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL -ffp-model=strict %s 2>&1 | FileCheck --check-prefix=CHECK-REENABLE-ERRNO-FP-MODEL %s
|
97 | 94 | // CHECK-REENABLE-ERRNO-FP-MODEL: math errno enabled by '-ffp-model=strict' after it was implicitly disabled by '-fveclib=ArmPL', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib]
|
98 |
| - |
99 | 95 | // CHECK-REENABLE-ERRNO-FP-MODEL: "-fveclib=ArmPL"
|
100 | 96 | // CHECK-REENABLE-ERRNO-FP-MODEL-SAME: "-fmath-errno"
|
| 97 | + |
| 98 | +/* Verify the warning points at the last arg to enable -fmath-errno. */ |
| 99 | +// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL -fno-fast-math -fno-math-errno -ffp-model=strict %s 2>&1 | FileCheck --check-prefix=CHECK-ENABLED-LAST %s |
| 100 | +// CHECK-ENABLED-LAST: math errno enabled by '-ffp-model=strict' after it was implicitly disabled by '-fveclib=ArmPL', this may limit the utilization of the vector library [-Wmath-errno-enabled-with-veclib] |
| 101 | + |
| 102 | +/* Verify no warning when math-errno is re-enabled for a different veclib (that does not imply -fno-math-errno). */ |
| 103 | +// RUN: %clang -### --target=aarch64-linux-gnu -fveclib=ArmPL -fmath-errno -fveclib=LIBMVEC %s 2>&1 | FileCheck --check-prefix=CHECK-REPEAT-VECLIB %s |
| 104 | +// CHECK-REPEAT-VECLIB-NOT: math errno enabled |
0 commit comments