Skip to content

Commit 82e08b5

Browse files
authored
[SYCL][E2E] Change %no_opt expansion to %O0 (#15434)
Changes the `%no_opt` expansion introduced in #15364, to `%O0` to reduce confusion in between different methods of disabling optimizations.
1 parent 5beeb96 commit 82e08b5

17 files changed

+19
-19
lines changed

sycl/test-e2e/Config/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// RUN: %{build} %debug_option %no_opt -o %t.out
8+
// RUN: %{build} %debug_option %O0 -o %t.out
99
// RUN: echo SYCL_PRINT_EXECUTION_GRAPH=always > %t.cfg
1010
// RUN: env SYCL_CONFIG_FILE_NAME=%t.cfg %t.out
1111
// RUN: cat *.dot > /dev/null

sycl/test-e2e/Config/env_vars.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: opencl
22
// Env vars are used to pass OpenCL-specific flags to PI compiling/linking.
33
//
4-
// RUN: %{build} %no_opt -o %t.out
4+
// RUN: %{build} %O0 -o %t.out
55
//
66
// RUN: env SYCL_PROGRAM_COMPILE_OPTIONS="-g" %{run} %t.out
77
// RUN: env SYCL_PROGRAM_APPEND_COMPILE_OPTIONS="-g" %{run} %t.out

sycl/test-e2e/ESIMD/slm_alloc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// RUN: %{run} %t.2.out
99

1010
// Check if the test sill passes with O0
11-
// RUN: %{build} %no_opt -o %t.3.out
11+
// RUN: %{build} %O0 -o %t.3.out
1212
// RUN: %{run} %t.3.out
1313

1414
// This is end-to-end test for the slm_allocator API used together with the

sycl/test-e2e/ESIMD/slm_alloc_many_kernels_many_funcs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: %{run} %t.2.out
1212

1313
// Check if the test sill passes with O0
14-
// RUN: %{build} %no_opt -o %t.3.out
14+
// RUN: %{build} %O0 -o %t.3.out
1515
// RUN: %{run} %t.3.out
1616

1717
// Checks validity of SLM frame offsets in case of complex call graph with two

sycl/test-e2e/ESIMD/slm_alloc_many_kernels_one_func.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: %{run} %t.2.out
1212

1313
// Check if the test sill passes with O0
14-
// RUN: %{build} %no_opt -o %t.3.out
14+
// RUN: %{build} %O0 -o %t.3.out
1515
// RUN: %{run} %t.3.out
1616

1717
// Check that SLM frame offset of a function foo called from two kernels Test1

sycl/test-e2e/GroupAlgorithm/SYCL2020/reduce_over_group_size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: %{build} -o %t.out
66
// RUN: %{run} %t.out
77

8-
// RUN: %{build} %no_opt -o %t_O0.out
8+
// RUN: %{build} %O0 -o %t_O0.out
99
// RUN: %{run} %t_O0.out
1010

1111
/*

sycl/test-e2e/HierPar/hier_par_wgscope_O0.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
// RUN: %{build} %no_opt -o %t.out
8+
// RUN: %{build} %O0 -o %t.out
99

1010
// RUN: %{run} %t.out
1111

sycl/test-e2e/NewOffloadDriver/aot-cpu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
// RUN: %{run} %t.out
77

88
// Test -O0 with `--offload-new-driver`
9-
// RUN: %clangxx %no_opt -fsycl -fsycl-targets=spir64-x86_64 %S/Inputs/aot.cpp
9+
// RUN: %clangxx %O0 -fsycl -fsycl-targets=spir64-x86_64 %S/Inputs/aot.cpp
1010
// RUN: %{run} %t.out

sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_with_aspects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// requires: cpu, gpu, accelerator
22
// UNSUPPORTED: hip
33
// FIXME: enable the test back, see intel/llvm#8146
4-
// RUN: %{build} -Wno-error=incorrect-sub-group-size %no_opt -o %t.out
4+
// RUN: %{build} -Wno-error=incorrect-sub-group-size %O0 -o %t.out
55
// RUN: %{run} %t.out
66

77
#include <sycl/detail/core.hpp>

sycl/test-e2e/OptionalKernelFeatures/throw-exception-for-unsupported-aspect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: cpu
22

3-
// RUN: %{build} %no_opt -o %t.out
3+
// RUN: %{build} %O0 -o %t.out
44
// RUN: %{run} %t.out
55

66
#include <sycl/detail/core.hpp>

0 commit comments

Comments
 (0)