|
5 | 5 | // DEFINE: -fsycl-is-device -emit-llvm -triple spirv64-unknown-unknown |
6 | 6 |
|
7 | 7 | // DEFINE: %{common_opts_spir} = -internal-isystem %S/Inputs \ |
8 | | -// DEFINE: -fsycl-is-device -emit-llvm -triple spirv-unknown-unknown |
| 8 | +// DEFINE: -fsycl-is-device -emit-llvm -triple spir-unknown-unknown |
9 | 9 |
|
10 | 10 | // DEFINE: %{common_opts_spir64} = -internal-isystem %S/Inputs \ |
11 | | -// DEFINE: -fsycl-is-device -emit-llvm -triple spirv64-unknown-unknown |
| 11 | +// DEFINE: -fsycl-is-device -emit-llvm -triple spir64-unknown-unknown |
12 | 12 |
|
13 | 13 | // RUN: %clang_cc1 %{common_opts_spirv32} %s -o - \ |
14 | 14 | // RUN: | FileCheck --check-prefix PREC-SQRT %s |
|
155 | 155 | // RUN: -ffp-builtin-accuracy=high:sin %s -o - \ |
156 | 156 | // RUN: | FileCheck --check-prefix ROUNDED-SQRT %s |
157 | 157 |
|
| 158 | +// RUN: %clang_cc1 %{common_opts_spir} %s -o - \ |
| 159 | +// RUN: | FileCheck --check-prefix PREC-SQRT %s |
| 160 | + |
| 161 | +// RUN: %clang_cc1 %{common_opts_spir} -foffload-fp32-prec-sqrt %s -o - \ |
| 162 | +// RUN: | FileCheck --check-prefix PREC-SQRT %s |
| 163 | + |
| 164 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-sqrt %s -o - \ |
| 165 | +// RUN: | FileCheck --check-prefix ROUNDED-SQRT %s |
| 166 | + |
| 167 | +// RUN: %clang_cc1 %{common_opts_spir} -foffload-fp32-prec-div %s -o - \ |
| 168 | +// RUN: | FileCheck --check-prefix PREC-DIV %s |
| 169 | + |
| 170 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-div %s -o - \ |
| 171 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV %s |
| 172 | + |
| 173 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-div \ |
| 174 | +// RUN: -fno-offload-fp32-prec-sqrt %s -o - \ |
| 175 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV-ROUNDED-SQRT %s |
| 176 | + |
| 177 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math \ |
| 178 | +// RUN:-fno-offload-fp32-prec-div -fno-offload-fp32-prec-sqrt %s -o - \ |
| 179 | +// RUN: | FileCheck --check-prefix ROUNDED-SQRT-FAST %s |
| 180 | + |
| 181 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math \ |
| 182 | +// RUN: -fno-offload-fp32-prec-div -fno-offload-fp32-prec-sqrt %s -o - \ |
| 183 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV-FAST %s |
| 184 | + |
| 185 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math -foffload-fp32-prec-div \ |
| 186 | +// RUN: %s -o - | FileCheck --check-prefix PREC-FAST %s |
| 187 | + |
| 188 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math -foffload-fp32-prec-sqrt \ |
| 189 | +// RUN: %s -o - | FileCheck --check-prefix PREC-FAST %s |
| 190 | + |
| 191 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math \ |
| 192 | +// RUN: -fno-offload-fp32-prec-div -foffload-fp32-prec-sqrt %s -o - \ |
| 193 | +// RUN: | FileCheck --check-prefix PREC-SQRT-FAST %s |
| 194 | + |
| 195 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math \ |
| 196 | +// RUN: -fno-offload-fp32-prec-sqrt -foffload-fp32-prec-div \ |
| 197 | +// RUN: %s -o - | FileCheck --check-prefix ROUNDED-SQRT-PREC-DIV %s |
| 198 | + |
| 199 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math \ |
| 200 | +// RUN: -fno-offload-fp32-prec-div -foffload-fp32-prec-sqrt \ |
| 201 | +// RUN: %s -o - | FileCheck --check-prefix ROUNDED-DIV-PREC-SQRT %s |
| 202 | + |
| 203 | +// RUN: %clang_cc1 %{common_opts_spir} -ffast-math \ |
| 204 | +// RUN: -fno-offload-fp32-prec-div -fno-offload-fp32-prec-sqrt \ |
| 205 | +// RUN: %s -o - | FileCheck --check-prefix ROUNDED-DIV-ROUNDED-SQRT-FAST %s |
| 206 | + |
| 207 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-div \ |
| 208 | +// RUN: -ffp-builtin-accuracy=high %s -o - \ |
| 209 | +// RUN: | FileCheck --check-prefix LOW-PREC-DIV %s |
| 210 | + |
| 211 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-div \ |
| 212 | +// RUN: -ffp-builtin-accuracy=high:fdiv %s -o - \ |
| 213 | +// RUN: | FileCheck --check-prefix HIGH-PREC %s |
| 214 | + |
| 215 | +// RUN: %clang_cc1 %{common_opts_spir} -ffp-builtin-accuracy=high:fdiv \ |
| 216 | +// RUN: -fno-offload-fp32-prec-div %s -o - \ |
| 217 | +// RUN: | FileCheck --check-prefix HIGH-PREC %s |
| 218 | + |
| 219 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-sqrt \ |
| 220 | +// RUN: -ffp-builtin-accuracy=high %s -o - \ |
| 221 | +// RUN: | FileCheck --check-prefix LOW-PREC-SQRT %s |
| 222 | + |
| 223 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-div \ |
| 224 | +// RUN: -ffp-builtin-accuracy=high:sin %s -o - \ |
| 225 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV %s |
| 226 | + |
| 227 | +// RUN: %clang_cc1 %{common_opts_spir} -fno-offload-fp32-prec-sqrt \ |
| 228 | +// RUN: -ffp-builtin-accuracy=high:sin %s -o - \ |
| 229 | +// RUN: | FileCheck --check-prefix ROUNDED-SQRT %s |
| 230 | + |
| 231 | +// |
| 232 | + |
| 233 | +// RUN: %clang_cc1 %{common_opts_spir64} %s -o - \ |
| 234 | +// RUN: | FileCheck --check-prefix PREC-SQRT %s |
| 235 | + |
| 236 | +// RUN: %clang_cc1 %{common_opts_spir64} -foffload-fp32-prec-sqrt %s -o - \ |
| 237 | +// RUN: | FileCheck --check-prefix PREC-SQRT %s |
| 238 | + |
| 239 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-sqrt %s -o - \ |
| 240 | +// RUN: | FileCheck --check-prefix ROUNDED-SQRT %s |
| 241 | + |
| 242 | +// RUN: %clang_cc1 %{common_opts_spir64} -foffload-fp32-prec-div %s -o - \ |
| 243 | +// RUN: | FileCheck --check-prefix PREC-DIV %s |
| 244 | + |
| 245 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-div %s -o - \ |
| 246 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV %s |
| 247 | + |
| 248 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-div \ |
| 249 | +// RUN: -fno-offload-fp32-prec-sqrt %s -o - \ |
| 250 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV-ROUNDED-SQRT %s |
| 251 | + |
| 252 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffast-math -fno-offload-fp32-prec-div \ |
| 253 | +// RUN: -fno-offload-fp32-prec-sqrt %s -o - \ |
| 254 | +// RUN: | FileCheck --check-prefix ROUNDED-SQRT-FAST %s |
| 255 | + |
| 256 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffast-math -fno-offload-fp32-prec-div \ |
| 257 | +// RUN: -fno-offload-fp32-prec-sqrt %s -o - \ |
| 258 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV-FAST %s |
| 259 | + |
| 260 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffast-math -foffload-fp32-prec-div \ |
| 261 | +// RUN: %s -o - | FileCheck --check-prefix PREC-FAST %s |
| 262 | + |
| 263 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffast-math \ |
| 264 | +// RUN: -fno-offload-fp32-prec-div -foffload-fp32-prec-sqrt %s -o - \ |
| 265 | +// RUN: | FileCheck --check-prefix PREC-SQRT-FAST %s |
| 266 | + |
| 267 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffast-math \ |
| 268 | +// RUN: -fno-offload-fp32-prec-sqrt -foffload-fp32-prec-div \ |
| 269 | +// RUN: %s -o - | FileCheck --check-prefix ROUNDED-SQRT-PREC-DIV %s |
| 270 | + |
| 271 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffast-math \ |
| 272 | +// RUN: -fno-offload-fp32-prec-div -foffload-fp32-prec-sqrt \ |
| 273 | +// RUN: %s -o - | FileCheck --check-prefix ROUNDED-DIV-PREC-SQRT %s |
| 274 | + |
| 275 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffast-math \ |
| 276 | +// RUN: -fno-offload-fp32-prec-div -fno-offload-fp32-prec-sqrt \ |
| 277 | +// RUN: %s -o - | FileCheck --check-prefix ROUNDED-DIV-ROUNDED-SQRT-FAST %s |
| 278 | + |
| 279 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-div \ |
| 280 | +// RUN: -ffp-builtin-accuracy=high %s -o - \ |
| 281 | +// RUN: | FileCheck --check-prefix LOW-PREC-DIV %s |
| 282 | + |
| 283 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-div \ |
| 284 | +// RUN: -ffp-builtin-accuracy=high:fdiv %s -o - \ |
| 285 | +// RUN: | FileCheck --check-prefix HIGH-PREC %s |
| 286 | + |
| 287 | +// RUN: %clang_cc1 %{common_opts_spir64} -ffp-builtin-accuracy=high:fdiv \ |
| 288 | +// RUN: -fno-offload-fp32-prec-div %s -o - \ |
| 289 | +// RUN: | FileCheck --check-prefix HIGH-PREC %s |
| 290 | + |
| 291 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-sqrt \ |
| 292 | +// RUN: -ffp-builtin-accuracy=high %s -o - \ |
| 293 | +// RUN: | FileCheck --check-prefix LOW-PREC-SQRT %s |
| 294 | + |
| 295 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-div \ |
| 296 | +// RUN: -ffp-builtin-accuracy=high:sin %s -o - \ |
| 297 | +// RUN: | FileCheck --check-prefix ROUNDED-DIV %s |
| 298 | + |
| 299 | +// RUN: %clang_cc1 %{common_opts_spir64} -fno-offload-fp32-prec-sqrt \ |
| 300 | +// RUN: -ffp-builtin-accuracy=high:sin %s -o - \ |
| 301 | +// RUN: | FileCheck --check-prefix ROUNDED-SQRT %s |
| 302 | + |
158 | 303 | #include "sycl.hpp" |
159 | 304 |
|
160 | 305 | extern "C" SYCL_EXTERNAL float sqrt(float); |
|
0 commit comments