Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Split optimization_level_debug_info test #977

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions SYCL/Regression/optimization_level_debug_info_intopt.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O0 -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O1 -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O2 -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O3 -o %t.out

// NOTE: Tests that debugging information can be generated for all integral
// optimization levels.

#include <CL/sycl.hpp>

int main() {
sycl::queue q;

q.submit([&](sycl::handler &cgh) {
cgh.parallel_for<class kernel_test>(100, [=](sycl::id<1> idx) {});
});
q.wait();

return 0;
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O0 -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O1 -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O2 -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O3 -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Ofast -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Os -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Oz -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -Og -o %t.out
// RUN: %clangxx %debug_option -fsycl -fsycl-targets=%sycl_triple %s -O -o %t.out

// NOTE: Tests that debugging information can be generated for all optimization
// levels.
// NOTE: Tests that debugging information can be generated for all special-name
// optimization levels.

#include <CL/sycl.hpp>

Expand All @@ -22,4 +18,4 @@ int main() {
q.wait();

return 0;
}
}