|
66 | 66 | // RUN: | FileCheck --check-prefix=WARN10 %s
|
67 | 67 | // WARN10: warning: overriding '-ffp-model=strict' option with '-fdenormal-fp-math=preserve-sign,preserve-sign' [-Woverriding-t-option]
|
68 | 68 |
|
| 69 | +// RUN: %clang -### -ffp-model=fast -ffp-model=strict -c %s 2>&1 | FileCheck \ |
| 70 | +// RUN: --check-prefix=WARN11 %s |
| 71 | +// WARN11: warning: overriding '-ffp-model=fast' option with '-ffp-model=strict' [-Woverriding-t-option] |
| 72 | +// WARN11-NOT: warning: overriding '-ffp-model=strict' option with '-ffp-model=strict' [-Woverriding-t-option] |
| 73 | + |
| 74 | +// RUN: %clang -### -Ofast -ffp-model=strict -c %s 2>&1 | FileCheck \ |
| 75 | +// RUN: --check-prefix=WARN12 %s |
| 76 | +// RUN: %clang -### -ffast-math -ffp-model=strict -c %s 2>&1 | FileCheck \ |
| 77 | +// RUN: --check-prefix=WARN12 %s |
| 78 | +// WARN12-NOT: warning: overriding '-ffp-model=strict' option with '-ffp-model=strict' [-Woverriding-t-option] |
| 79 | + |
69 | 80 | // RUN: %clang -### -c %s 2>&1 \
|
70 | 81 | // RUN: | FileCheck --check-prefix=CHECK-NOROUND %s
|
71 | 82 | // CHECK-NOROUND: "-cc1"
|
|
107 | 118 | // CHECK-FPM-STRICT: "-frounding-math"
|
108 | 119 | // CHECK-FPM-STRICT: "-ffp-exception-behavior=strict"
|
109 | 120 |
|
| 121 | +// RUN: %clang -### -nostdinc -ffp-model=strict -ffp-model=fast -c %s 2>&1 \ |
| 122 | +// RUN: | FileCheck --check-prefix=CHECK-NO-EXCEPT %s |
| 123 | +// RUN: %clang -### -nostdinc -ffp-model=strict -ffast-math -c %s 2>&1 \ |
| 124 | +// RUN: | FileCheck --check-prefix=CHECK-NO-EXCEPT %s |
| 125 | +// RUN: %clang -### -nostdinc -ffp-model=strict -Ofast -c %s 2>&1 \ |
| 126 | +// RUN: | FileCheck --check-prefix=CHECK-NO-EXCEPT %s |
| 127 | +// CHECK-NO-EXCEPT-NOT: "-ffp-exception-behavior=strict" |
110 | 128 |
|
111 | 129 | // RUN: %clang -### -nostdinc -ffp-exception-behavior=strict -c %s 2>&1 \
|
112 | 130 | // RUN: | FileCheck --check-prefix=CHECK-FEB-STRICT %s
|
|
0 commit comments