|
177 | 177 | // RUN: %clang -### -target x86_64 -ffast-math -fcomplex-arithmetic=basic -c %s 2>&1 \
|
178 | 178 | // RUN: | FileCheck --check-prefix=BASIC %s
|
179 | 179 |
|
180 |
| -// BASIC: -complex-range=basic |
181 |
| -// FULL: -complex-range=full |
182 |
| -// PRMTD: -complex-range=promoted |
183 |
| -// BASIC-NOT: -complex-range=improved |
184 |
| -// CHECK-NOT: -complex-range=basic |
185 |
| -// IMPRVD: -complex-range=improved |
186 |
| -// IMPRVD-NOT: -complex-range=basic |
187 |
| -// CHECK-NOT: -complex-range=improved |
| 180 | +// RUN: %clang -### --target=x86_64 -fcx-limited-range -fno-fast-math \ |
| 181 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE,WARN21 %s |
| 182 | + |
| 183 | +// RUN: %clang -### -Werror --target=x86_64 -fno-cx-limited-range -fno-fast-math \ |
| 184 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 185 | + |
| 186 | +// RUN: %clang -### --target=x86_64 -fcx-fortran-rules -fno-fast-math \ |
| 187 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE,WARN22 %s |
| 188 | + |
| 189 | +// RUN: %clang -### -Werror --target=x86_64 -fno-cx-fortran-rules -fno-fast-math \ |
| 190 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 191 | + |
| 192 | +// RUN: %clang -### -Werror --target=x86_64 -ffast-math -fno-fast-math \ |
| 193 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 194 | + |
| 195 | +// RUN: %clang -### --target=x86_64 -fcomplex-arithmetic=basic -fno-fast-math \ |
| 196 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE,WARN23 %s |
| 197 | + |
| 198 | +// RUN: %clang -### --target=x86_64 -fcomplex-arithmetic=promoted -fno-fast-math \ |
| 199 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE,WARN24 %s |
| 200 | + |
| 201 | +// RUN: %clang -### --target=x86_64 -fcomplex-arithmetic=improved -fno-fast-math \ |
| 202 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE,WARN25 %s |
| 203 | + |
| 204 | +// RUN: %clang -### -Werror --target=x86_64 -fcomplex-arithmetic=full -fno-fast-math \ |
| 205 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 206 | + |
| 207 | +// RUN: %clang -### -Werror --target=x86_64 -ffp-model=aggressive -fno-fast-math \ |
| 208 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 209 | + |
| 210 | +// RUN: %clang -### -Werror --target=x86_64 -ffp-model=fast -fno-fast-math \ |
| 211 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 212 | + |
| 213 | +// RUN: %clang -### -Werror --target=x86_64 -ffp-model=precise -fno-fast-math \ |
| 214 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 215 | + |
| 216 | +// RUN: %clang -### -Werror --target=x86_64 -ffp-model=strict -fno-fast-math \ |
| 217 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=RANGE %s |
| 218 | + |
| 219 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fcx-limited-range \ |
| 220 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=BASIC %s |
| 221 | + |
| 222 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fno-cx-limited-range \ |
| 223 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=FULL %s |
| 224 | + |
| 225 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fcx-fortran-rules \ |
| 226 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=IMPRVD %s |
| 227 | + |
| 228 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fno-cx-fortran-rules \ |
| 229 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=FULL %s |
| 230 | + |
| 231 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -ffast-math \ |
| 232 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=BASIC %s |
| 233 | + |
| 234 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fcomplex-arithmetic=basic \ |
| 235 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=BASIC %s |
| 236 | + |
| 237 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fcomplex-arithmetic=promoted \ |
| 238 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=PRMTD %s |
| 239 | + |
| 240 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fcomplex-arithmetic=improved \ |
| 241 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=IMPRVD %s |
| 242 | + |
| 243 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -fcomplex-arithmetic=full \ |
| 244 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=FULL %s |
| 245 | + |
| 246 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -ffp-model=aggressive \ |
| 247 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=BASIC %s |
| 248 | + |
| 249 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -ffp-model=fast \ |
| 250 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=PRMTD %s |
| 251 | + |
| 252 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -ffp-model=precise \ |
| 253 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=FULL %s |
| 254 | + |
| 255 | +// RUN: %clang -### -Werror --target=x86_64 -fno-fast-math -ffp-model=strict \ |
| 256 | +// RUN: -c %s 2>&1 | FileCheck --check-prefixes=FULL %s |
188 | 257 |
|
189 | 258 | // WARN1: warning: overriding '-fcx-limited-range' option with '-fcx-fortran-rules' [-Woverriding-option]
|
190 | 259 | // WARN2: warning: overriding '-fno-cx-limited-range' option with '-fcx-fortran-rules' [-Woverriding-option]
|
|
196 | 265 | // WARN14: overriding '-complex-range=promoted' option with '-fcx-limited-range' [-Woverriding-option]
|
197 | 266 | // WARN17: warning: overriding '-fcomplex-arithmetic=full' option with '-fcomplex-arithmetic=basic' [-Woverriding-option]
|
198 | 267 | // WARN20: warning: overriding '-fcx-fortran-rules' option with '-fcx-limited-range' [-Woverriding-option]
|
| 268 | +// WARN21: warning: overriding '-fcx-limited-range' option with '-fno-fast-math' [-Woverriding-option] |
| 269 | +// WARN22: warning: overriding '-fcx-fortran-rules' option with '-fno-fast-math' [-Woverriding-option] |
| 270 | +// WARN23: warning: overriding '-fcomplex-arithmetic=basic' option with '-fno-fast-math' [-Woverriding-option] |
| 271 | +// WARN24: warning: overriding '-fcomplex-arithmetic=promoted' option with '-fno-fast-math' [-Woverriding-option] |
| 272 | +// WARN25: warning: overriding '-fcomplex-arithmetic=improved' option with '-fno-fast-math' [-Woverriding-option] |
| 273 | + |
| 274 | +// BASIC: -complex-range=basic |
| 275 | +// FULL: -complex-range=full |
| 276 | +// PRMTD: -complex-range=promoted |
| 277 | +// BASIC-NOT: -complex-range=improved |
| 278 | +// CHECK-NOT: -complex-range=basic |
| 279 | +// IMPRVD: -complex-range=improved |
| 280 | +// IMPRVD-NOT: -complex-range=basic |
| 281 | +// CHECK-NOT: -complex-range=improved |
| 282 | +// RANGE-NOT: -complex-range= |
199 | 283 |
|
200 | 284 | // ERR: error: unsupported argument 'foo' to option '-fcomplex-arithmetic='
|
0 commit comments