File tree Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: opencl-aot, cpu
2
2
// UNSUPPORTED: windows
3
3
4
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/cmath_test.cpp -o %t.cmath.out
4
+ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
5
+
6
+ // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %{mathflags} %S/cmath_test.cpp -o %t.cmath.out
5
7
// RUN: %{run} %t.cmath.out
6
8
7
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/cmath_fp64_test.cpp -o %t.cmath.fp64.out
9
+ // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %{mathflags} % S/cmath_fp64_test.cpp -o %t.cmath.fp64.out
8
10
// RUN: %{run} %t.cmath.fp64.out
9
11
10
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/std_complex_math_test.cpp -o %t.complex.out
12
+ // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %{mathflags} % S/std_complex_math_test.cpp -o %t.complex.out
11
13
// RUN: %{run} %t.complex.out
12
14
13
- // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/std_complex_math_fp64_test.cpp -o %t.complex.fp64.out
15
+ // RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %{mathflags} % S/std_complex_math_fp64_test.cpp -o %t.complex.fp64.out
14
16
// RUN: %{run} %t.complex.fp64.out
Original file line number Diff line number Diff line change 1
1
// REQUIRES: aspect-fp64
2
2
// UNSUPPORTED: gpu
3
- // RUN: %{build} -o %t.out
3
+
4
+ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
5
+
6
+ // RUN: %{build} %{mathflags} -o %t.out
4
7
// RUN: %{run} %t.out
5
8
6
- // RUN: %{build} -fsycl-device-lib-jit-link -o %t.out
9
+ // RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t.out
7
10
// RUN: %{run} %t.out
8
11
9
12
#include " math_utils.hpp"
Original file line number Diff line number Diff line change 1
1
// REQUIRES: aspect-fp64
2
2
// UNSUPPORTED: hip
3
- // RUN: %{build} -o %t.out
3
+
4
+ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
5
+
6
+ // RUN: %{build} %{mathflags} -o %t.out
4
7
// RUN: %{run} %t.out
5
8
6
- // RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
9
+ // RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %{mathflags} % s -o %t.out
7
10
// RUN: %if !gpu %{ %{run} %t.out %}
8
11
9
12
#include " math_utils.hpp"
Original file line number Diff line number Diff line change 2
2
// RUN: %{build} -o %t.out
3
3
// RUN: %{run} %t.out
4
4
5
- // RUN: %{build} -fsycl-device-lib-jit-link -o %t.out
5
+ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
6
+
7
+ // RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t.out
6
8
// RUN: %if !gpu %{ %{run} %t.out %}
7
9
8
10
#include " math_utils.hpp"
You can’t perform that action at this time.
0 commit comments