Skip to content

Commit cee6122

Browse files
[SYCL][Tests] Fix preview flags in testing (#11919)
The preview flag was intended to be used in a number of builtins tests but were not correctly added to the build steps. This commit amends these tests. --------- Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
1 parent 75b877f commit cee6122

16 files changed

+19
-31
lines changed

sycl/test-e2e/Basic/built-ins/host_math.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{%{build} -o -fpreview %t_preview.out%}
4-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
3+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t_preview.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t_preview.out %}
55

66
#include <cmath>
77
#include <iomanip>

sycl/test-e2e/Basic/built-ins/marray_common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{%{build} -o -fpreview %t_preview.out%}
4-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
3+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t_preview.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t_preview.out%}
55

66
#ifdef _WIN32
77
#define _USE_MATH_DEFINES // To use math constants

sycl/test-e2e/Basic/built-ins/marray_geometric.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{%{build} -o -fpreview %t_preview.out%}
4-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
3+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t_preview.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t_preview.out %}
55

66
#include <CL/sycl.hpp>
77

sycl/test-e2e/Basic/built-ins/marray_math.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// RUN: %{build} %{mathflags} -o %t.out
44
// RUN: %{run} %t.out
5-
// RUN: %if preview-breaking-changes-supported %{%{build} %{mathflags} -o -fpreview %t_preview.out%}
6-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
5+
// RUN: %if preview-breaking-changes-supported %{ %{build} %{mathflags} -fpreview-breaking-changes -o %t_preview.out %}
6+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t_preview.out%}
77

88
#include <sycl/sycl.hpp>
99

sycl/test-e2e/Basic/built-ins/marray_relational.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{%{build} -o -fpreview %t_preview.out%}
4-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
3+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t_preview.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t_preview.out%}
55

66
#include <CL/sycl.hpp>
77

sycl/test-e2e/Basic/built-ins/vec_common.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{%{build} -o -fpreview %t_preview.out%}
4-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
5-
63
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t2.out %}
7-
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
85

96
#ifdef _WIN32
107
#define _USE_MATH_DEFINES // To use math constants

sycl/test-e2e/Basic/built-ins/vec_geometric.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{%{build} -o -fpreview %t_preview.out%}
4-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
5-
63
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t2.out %}
74
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
85

sycl/test-e2e/Basic/built-ins/vec_math.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22

33
// RUN: %{build} %{mathflags} -o %t.out
44
// RUN: %{run} %t.out
5-
// RUN: %if preview-breaking-changes-supported %{%{build} %{mathflags} -o -fpreview %t_preview.out%}
6-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
7-
85
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %{mathflags} %s -o %t2.out %}
9-
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
6+
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
107

118
#include <sycl/sycl.hpp>
129

sycl/test-e2e/Basic/built-ins/vec_relational.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
3-
// RUN: %if preview-breaking-changes-supported %{%{build} -o -fpreview %t_preview.out%}
4-
// RUN: %if preview-breaking-changes-supported %{%{run} %t_preview.out%}
5-
63
// RUN: %if preview-breaking-changes-supported %{ %clangxx -fsycl -fpreview-breaking-changes %s -o %t2.out %}
74
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
85

sycl/test-e2e/DeviceLib/built-ins/nan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
22
// RUN: %{run} %t.out
33

4-
// RUN: %if preview-breaking-changes-supported %{ %{build} -fsycl-device-code-split=per_kernel -o %t2.out %}
4+
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -fsycl-device-code-split=per_kernel -o %t2.out %}
55
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
66

77
#include <iostream>

0 commit comments

Comments
 (0)