|
10 | 10 | // RUN: %clang -### -fno-fast-math -c %s 2>&1 \
|
11 | 11 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
12 | 12 |
|
13 |
| -// RUN: %clang -### -ffast-math -ffp-contract=on -c %s 2>&1 \ |
| 13 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=on -c %s 2>&1 \ |
14 | 14 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
15 | 15 | // CHECK-FPC-ON: "-ffp-contract=on"
|
16 | 16 |
|
17 |
| -// RUN: %clang -### -ffast-math -ffp-contract=off -c %s 2>&1 \ |
| 17 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=off -c %s 2>&1 \ |
18 | 18 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
19 | 19 | // CHECK-FPC-OFF: "-ffp-contract=off"
|
20 | 20 |
|
21 |
| -// RUN: %clang -### -ffast-math -ffp-contract=fast -c %s 2>&1 \ |
| 21 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=fast -c %s 2>&1 \ |
22 | 22 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
23 | 23 |
|
24 |
| -// RUN: %clang -### -ffast-math -ffp-contract=fast-honor-pragmas -c %s 2>&1 \ |
| 24 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=fast-honor-pragmas -c %s 2>&1 \ |
25 | 25 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST-HONOR %s
|
26 | 26 | // CHECK-FPC-FAST-HONOR: "-ffp-contract=fast-honor-pragmas"
|
27 | 27 |
|
28 |
| -// RUN: %clang -### -ffp-contract=fast -ffast-math -c %s 2>&1 \ |
| 28 | +// RUN: %clang -### -Werror -ffp-contract=fast -ffast-math -c %s 2>&1 \ |
29 | 29 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
30 |
| -// RUN: %clang -### -ffp-contract=on -ffast-math -c %s 2>&1 \ |
| 30 | +// RUN: %clang -### -Werror -ffp-contract=on -ffast-math -c %s 2>&1 \ |
31 | 31 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
32 |
| -// RUN: %clang -### -ffp-contract=off -ffast-math -c %s 2>&1 \ |
| 32 | +// RUN: %clang -### -Werror -ffp-contract=off -ffast-math -c %s 2>&1 \ |
33 | 33 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
34 | 34 |
|
35 |
| -// RUN: %clang -### -ffp-contract=fast -fno-fast-math -c %s 2>&1 \ |
| 35 | +// RUN: %clang -### -Werror -ffp-contract=fast -fno-fast-math -c %s 2>&1 \ |
36 | 36 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
37 |
| -// RUN: %clang -### -ffp-contract=on -fno-fast-math -c %s 2>&1 \ |
| 37 | +// RUN: %clang -### -Werror -ffp-contract=on -fno-fast-math -c %s 2>&1 \ |
38 | 38 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
39 |
| -// RUN: %clang -### -ffp-contract=off -fno-fast-math -c %s 2>&1 \ |
| 39 | +// RUN: %clang -### -Werror -ffp-contract=off -fno-fast-math -c %s 2>&1 \ |
40 | 40 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
41 | 41 |
|
42 | 42 |
|
43 |
| -// RUN: %clang -### -ffast-math -ffp-contract=fast -ffp-contract=on -c %s 2>&1 \ |
| 43 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=fast -ffp-contract=on -c %s 2>&1 \ |
44 | 44 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
45 | 45 |
|
46 |
| -// RUN: %clang -### -ffast-math -ffp-contract=on -ffp-contract=off -c %s 2>&1 \ |
| 46 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=on -ffp-contract=off -c %s 2>&1 \ |
47 | 47 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
48 | 48 |
|
49 |
| -// RUN: %clang -### -ffast-math -ffp-contract=on -ffp-contract=fast -c %s 2>&1 \ |
| 49 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=on -ffp-contract=fast -c %s 2>&1 \ |
50 | 50 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
51 | 51 |
|
52 |
| -// RUN: %clang -### -ffast-math -ffp-contract=off -ffp-contract=on -c %s 2>&1 \ |
| 52 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=off -ffp-contract=on -c %s 2>&1 \ |
53 | 53 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
54 | 54 |
|
55 |
| -// RUN: %clang -### -ffast-math -ffp-contract=off -ffp-contract=fast \ |
| 55 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=off -ffp-contract=fast \ |
56 | 56 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
57 | 57 |
|
58 |
| -// RUN: %clang -### -ffast-math -ffp-contract=on -fno-fast-math -c %s 2>&1 \ |
| 58 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=on -fno-fast-math -c %s 2>&1 \ |
59 | 59 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
60 | 60 |
|
61 |
| -// RUN: %clang -### -ffast-math -ffp-contract=off -fno-fast-math -c %s 2>&1 \ |
| 61 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=off -fno-fast-math -c %s 2>&1 \ |
62 | 62 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
63 | 63 |
|
64 |
| -// RUN: %clang -### -ffast-math -ffp-contract=fast -fno-fast-math -c %s 2>&1 \ |
| 64 | +// RUN: %clang -### -Werror -ffast-math -ffp-contract=fast -fno-fast-math -c %s 2>&1 \ |
65 | 65 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
66 | 66 |
|
67 |
| -// RUN: %clang -### -ffast-math -fno-fast-math -c %s 2>&1 \ |
| 67 | +// RUN: %clang -### -Werror -ffast-math -fno-fast-math -c %s 2>&1 \ |
68 | 68 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
69 | 69 |
|
70 |
| -// RUN: %clang -### -fno-fast-math -ffast-math -c %s 2>&1 \ |
| 70 | +// RUN: %clang -### -Werror -fno-fast-math -ffast-math -c %s 2>&1 \ |
71 | 71 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
72 | 72 |
|
73 |
| -// RUN: %clang -### -fno-fast-math -ffp-contract=on -c %s 2>&1 \ |
| 73 | +// RUN: %clang -### -Werror -fno-fast-math -ffp-contract=on -c %s 2>&1 \ |
74 | 74 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
75 | 75 |
|
76 |
| -// RUN: %clang -### -fno-fast-math -ffp-contract=off -c %s 2>&1 \ |
| 76 | +// RUN: %clang -### -Werror -fno-fast-math -ffp-contract=off -c %s 2>&1 \ |
77 | 77 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
78 | 78 |
|
79 |
| -// RUN: %clang -### -fno-fast-math -ffp-contract=fast -c %s 2>&1 \ |
| 79 | +// RUN: %clang -### -Werror -fno-fast-math -ffp-contract=fast -c %s 2>&1 \ |
80 | 80 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
81 | 81 |
|
82 |
| -// RUN: %clang -### -ffp-contract=fast -fno-fast-math -ffp-contract=on \ |
| 82 | +// RUN: %clang -### -Werror -ffp-contract=fast -fno-fast-math -ffp-contract=on \ |
83 | 83 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
84 | 84 |
|
85 |
| -// RUN: %clang -### -ffp-contract=fast -fno-fast-math -ffp-contract=off \ |
| 85 | +// RUN: %clang -### -Werror -ffp-contract=fast -fno-fast-math -ffp-contract=off \ |
86 | 86 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
87 | 87 |
|
88 |
| -// RUN: %clang -### -ffp-contract=off -fno-fast-math -ffp-contract=fast \ |
| 88 | +// RUN: %clang -### -Werror -ffp-contract=off -fno-fast-math -ffp-contract=fast \ |
89 | 89 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
90 | 90 |
|
91 |
| -// RUN: %clang -### -ffp-contract=off -fno-fast-math -ffp-contract=on \ |
| 91 | +// RUN: %clang -### -Werror -ffp-contract=off -fno-fast-math -ffp-contract=on \ |
92 | 92 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
93 | 93 |
|
94 |
| -// RUN: %clang -### -ffp-contract=on -ffast-math -c %s 2>&1 \ |
| 94 | +// RUN: %clang -### -Werror -ffp-contract=on -ffast-math -c %s 2>&1 \ |
95 | 95 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
96 | 96 |
|
97 |
| -// RUN: %clang -### -ffp-contract=off -ffast-math -c %s 2>&1 \ |
| 97 | +// RUN: %clang -### -Werror -ffp-contract=off -ffast-math -c %s 2>&1 \ |
98 | 98 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
99 | 99 |
|
100 |
| -// RUN: %clang -### -ffp-contract=fast -ffast-math -c %s 2>&1 \ |
| 100 | +// RUN: %clang -### -Werror -ffp-contract=fast -ffast-math -c %s 2>&1 \ |
101 | 101 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
102 | 102 |
|
103 |
| -// RUN: %clang -### -ffp-contract=on -ffast-math -fno-fast-math -c %s 2>&1 \ |
| 103 | +// RUN: %clang -### -Werror -ffp-contract=on -ffast-math -fno-fast-math -c %s 2>&1 \ |
104 | 104 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
105 | 105 |
|
106 |
| -// RUN: %clang -### -ffp-contract=off -ffast-math -fno-fast-math -c %s 2>&1 \ |
| 106 | +// RUN: %clang -### -Werror -ffp-contract=off -ffast-math -fno-fast-math -c %s 2>&1 \ |
107 | 107 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
108 | 108 |
|
109 |
| -// RUN: %clang -### -ffp-contract=fast -ffast-math -fno-fast-math -c %s 2>&1 \ |
| 109 | +// RUN: %clang -### -Werror -ffp-contract=fast -ffast-math -fno-fast-math -c %s 2>&1 \ |
110 | 110 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
111 | 111 |
|
112 |
| -// RUN: %clang -### -fno-fast-math -ffast-math -ffp-contract=fast \ |
| 112 | +// RUN: %clang -### -Werror -fno-fast-math -ffast-math -ffp-contract=fast \ |
113 | 113 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
114 | 114 |
|
115 |
| -// RUN: %clang -### -fno-fast-math -ffast-math -ffp-contract=on \ |
| 115 | +// RUN: %clang -### -Werror -fno-fast-math -ffast-math -ffp-contract=on \ |
116 | 116 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
117 | 117 |
|
118 |
| -// RUN: %clang -### -fno-fast-math -ffast-math -ffp-contract=off \ |
| 118 | +// RUN: %clang -### -Werror -fno-fast-math -ffast-math -ffp-contract=off \ |
119 | 119 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
120 | 120 |
|
121 | 121 | // funsafe-math-optimizations, fno-unsafe-math-optimizations
|
|
125 | 125 | // RUN: %clang -### -fno-unsafe-math-optimizations -c %s 2>&1 \
|
126 | 126 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
127 | 127 |
|
128 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=on -c %s 2>&1 \ |
| 128 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=on -c %s 2>&1 \ |
129 | 129 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
130 | 130 |
|
131 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=off -c %s 2>&1 \ |
| 131 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=off -c %s 2>&1 \ |
132 | 132 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
133 | 133 |
|
134 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=fast -c %s 2>&1 \ |
| 134 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=fast -c %s 2>&1 \ |
135 | 135 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
136 | 136 |
|
137 |
| -// RUN: %clang -### -ffp-contract=fast -funsafe-math-optimizations -c %s 2>&1 \ |
| 137 | +// RUN: %clang -### -Werror -ffp-contract=fast -funsafe-math-optimizations -c %s 2>&1 \ |
138 | 138 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
139 |
| -// RUN: %clang -### -ffp-contract=on -funsafe-math-optimizations -c %s 2>&1 \ |
| 139 | +// RUN: %clang -### -Werror -ffp-contract=on -funsafe-math-optimizations -c %s 2>&1 \ |
140 | 140 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
141 |
| -// RUN: %clang -### -ffp-contract=off -funsafe-math-optimizations -c %s 2>&1 \ |
| 141 | +// RUN: %clang -### -Werror -ffp-contract=off -funsafe-math-optimizations -c %s 2>&1 \ |
142 | 142 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
143 | 143 |
|
144 |
| -// RUN: %clang -### -ffp-contract=fast -fno-unsafe-math-optimizations -c \ |
| 144 | +// RUN: %clang -### -Werror -ffp-contract=fast -fno-unsafe-math-optimizations -c \ |
145 | 145 | // RUN: %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
146 |
| -// RUN: %clang -### -ffp-contract=on -fno-unsafe-math-optimizations -c %s 2>&1 \ |
| 146 | +// RUN: %clang -### -Werror -ffp-contract=on -fno-unsafe-math-optimizations -c %s 2>&1 \ |
147 | 147 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
148 |
| -// RUN: %clang -### -ffp-contract=off -fno-unsafe-math-optimizations -c %s 2>&1 \ |
| 148 | +// RUN: %clang -### -Werror -ffp-contract=off -fno-unsafe-math-optimizations -c %s 2>&1 \ |
149 | 149 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
150 | 150 |
|
151 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=fast \ |
| 151 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=fast \ |
152 | 152 | // RUN: -ffp-contract=on -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
153 | 153 |
|
154 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=on \ |
| 154 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=on \ |
155 | 155 | // RUN: -ffp-contract=off -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
156 | 156 |
|
157 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=on \ |
| 157 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=on \ |
158 | 158 | // RUN: -ffp-contract=fast -c %s 2>&1 \
|
159 | 159 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
160 | 160 |
|
161 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=off \ |
| 161 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=off \ |
162 | 162 | // RUN: -ffp-contract=on -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
163 | 163 |
|
164 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=off \ |
| 164 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=off \ |
165 | 165 | // RUN: -ffp-contract=fast \
|
166 | 166 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
167 | 167 |
|
168 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=on \ |
| 168 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=on \ |
169 | 169 | // RUN: -fno-unsafe-math-optimizations -c %s 2>&1 \
|
170 | 170 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
171 | 171 |
|
172 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=off \ |
| 172 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=off \ |
173 | 173 | // RUN: -fno-unsafe-math-optimizations -c %s 2>&1 \
|
174 | 174 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
175 | 175 |
|
176 |
| -// RUN: %clang -### -funsafe-math-optimizations -ffp-contract=fast \ |
| 176 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -ffp-contract=fast \ |
177 | 177 | // RUN: -fno-unsafe-math-optimizations -c %s 2>&1 \
|
178 | 178 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
179 | 179 |
|
180 |
| -// RUN: %clang -### -funsafe-math-optimizations -fno-unsafe-math-optimizations \ |
| 180 | +// RUN: %clang -### -Werror -funsafe-math-optimizations -fno-unsafe-math-optimizations \ |
181 | 181 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
182 | 182 |
|
183 |
| -// RUN: %clang -### -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
| 183 | +// RUN: %clang -### -Werror -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
184 | 184 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
185 | 185 |
|
186 |
| -// RUN: %clang -### -fno-unsafe-math-optimizations -ffp-contract=on -c %s 2>&1 \ |
| 186 | +// RUN: %clang -### -Werror -fno-unsafe-math-optimizations -ffp-contract=on -c %s 2>&1 \ |
187 | 187 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
188 | 188 |
|
189 |
| -// RUN: %clang -### -fno-unsafe-math-optimizations -ffp-contract=off -c %s 2>&1 \ |
| 189 | +// RUN: %clang -### -Werror -fno-unsafe-math-optimizations -ffp-contract=off -c %s 2>&1 \ |
190 | 190 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
191 | 191 |
|
192 |
| -// RUN: %clang -### -fno-unsafe-math-optimizations -ffp-contract=fast -c %s 2>&1 \ |
| 192 | +// RUN: %clang -### -Werror -fno-unsafe-math-optimizations -ffp-contract=fast -c %s 2>&1 \ |
193 | 193 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
194 | 194 |
|
195 |
| -// RUN: %clang -### -ffp-contract=fast -fno-unsafe-math-optimizations \ |
| 195 | +// RUN: %clang -### -Werror -ffp-contract=fast -fno-unsafe-math-optimizations \ |
196 | 196 | // RUN: -ffp-contract=on \
|
197 | 197 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
198 | 198 |
|
199 |
| -// RUN: %clang -### -ffp-contract=fast -fno-unsafe-math-optimizations \ |
| 199 | +// RUN: %clang -### -Werror -ffp-contract=fast -fno-unsafe-math-optimizations \ |
200 | 200 | // RUN: -ffp-contract=off \
|
201 | 201 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
202 | 202 |
|
203 |
| -// RUN: %clang -### -ffp-contract=off -fno-unsafe-math-optimizations \ |
| 203 | +// RUN: %clang -### -Werror -ffp-contract=off -fno-unsafe-math-optimizations \ |
204 | 204 | // RUN: -ffp-contract=fast \
|
205 | 205 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
206 | 206 |
|
207 |
| -// RUN: %clang -### -ffp-contract=off -fno-unsafe-math-optimizations \ |
| 207 | +// RUN: %clang -### -Werror -ffp-contract=off -fno-unsafe-math-optimizations \ |
208 | 208 | // RUN: -ffp-contract=on -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s
|
209 | 209 |
|
210 |
| -// RUN: %clang -### -ffp-contract=on -funsafe-math-optimizations -c %s 2>&1 \ |
| 210 | +// RUN: %clang -### -Werror -ffp-contract=on -funsafe-math-optimizations -c %s 2>&1 \ |
211 | 211 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
212 | 212 |
|
213 |
| -// RUN: %clang -### -ffp-contract=off -funsafe-math-optimizations -c %s 2>&1 \ |
| 213 | +// RUN: %clang -### -Werror -ffp-contract=off -funsafe-math-optimizations -c %s 2>&1 \ |
214 | 214 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
215 | 215 |
|
216 |
| -// RUN: %clang -### -ffp-contract=fast -funsafe-math-optimizations -c %s 2>&1 \ |
| 216 | +// RUN: %clang -### -Werror -ffp-contract=fast -funsafe-math-optimizations -c %s 2>&1 \ |
217 | 217 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
218 | 218 |
|
219 |
| -// RUN: %clang -### -ffp-contract=on -funsafe-math-optimizations \ |
220 |
| -// RUN: -fno-unsafe-math-optimizations -c %s 2>&1 \ |
| 219 | +// RUN: %clang -### -Werror -ffp-contract=on -funsafe-math-optimizations -fno-unsafe-math-optimizations -c %s 2>&1 \ |
221 | 220 | // RUN: | FileCheck --check-prefix=CHECK-FPC-ON %s
|
222 | 221 |
|
223 |
| -// RUN: %clang -### -ffp-contract=off -funsafe-math-optimizations \ |
224 |
| -// RUN: -fno-unsafe-math-optimizations -c %s 2>&1 \ |
| 222 | +// RUN: %clang -### -Werror -ffp-contract=off -funsafe-math-optimizations -fno-unsafe-math-optimizations -c %s 2>&1 \ |
225 | 223 | // RUN: | FileCheck --check-prefix=CHECK-FPC-OFF %s
|
226 | 224 |
|
227 |
| -// RUN: %clang -### -ffp-contract=fast -funsafe-math-optimizations \ |
228 |
| -// RUN: -fno-unsafe-math-optimizations -c %s 2>&1 \ |
| 225 | +// RUN: %clang -### -Werror -ffp-contract=fast -funsafe-math-optimizations -fno-unsafe-math-optimizations -c %s 2>&1 \ |
229 | 226 | // RUN: | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
230 | 227 |
|
231 |
| -// RUN: %clang -### -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
232 |
| -// RUN: -ffp-contract=fast \ |
| 228 | +// RUN: %clang -### -Werror -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
| 229 | +// RUN: -ffp-contract=fast \ |
233 | 230 | // RUN: -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-FAST %s
|
234 | 231 |
|
235 |
| -// RUN: %clang -### -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
236 |
| -// RUN: -ffp-contract=on -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s |
| 232 | +// RUN: %clang -### -Werror -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
| 233 | +// RUN: -ffp-contract=on -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-ON %s |
237 | 234 |
|
238 |
| -// RUN: %clang -### -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
239 |
| -// RUN: -ffp-contract=off -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-OFF %s |
| 235 | +// RUN: %clang -### -Werror -fno-unsafe-math-optimizations -funsafe-math-optimizations \ |
| 236 | +// RUN: -ffp-contract=off -c %s 2>&1 | FileCheck --check-prefix=CHECK-FPC-OFF %s |
240 | 237 |
|
0 commit comments