Skip to content

Commit

Permalink
[SYCL][NFC] Make lit tests agnostic to compiler optimizations (#2089)
Browse files Browse the repository at this point in the history
As of today SYCL device compiler do not apply any LLVM transformations
to emitted LLVM code, but SYCL tests shouldn't rely on this behavior, so
this patch explicitly set compiler option to disable any LLVM passes.
  • Loading branch information
bader authored Jul 16, 2020
1 parent 27b5f71 commit 57a63b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sycl/test/check_device_code/kernel_arguments_as.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clangxx -fsycl-device-only -Xclang -fsycl-is-device -emit-llvm %s -S -o %t.ll -I %sycl_include -Wno-sycl-strict -Xclang -verify-ignore-unexpected=note,warning
// RUN: %clangxx -fsycl-device-only -Xclang -fsycl-is-device -emit-llvm %s -S -o %t.ll -I %sycl_include -Wno-sycl-strict -Xclang -verify-ignore-unexpected=note,warning -Xclang -disable-llvm-passes
// RUN: FileCheck %s --input-file %t.ll
//
// Check the address space of the pointer in accessor class.
Expand Down
2 changes: 1 addition & 1 deletion sycl/test/check_device_code/usm_pointers.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clangxx -fsycl-device-only -Xclang -fsycl-is-device -emit-llvm %s -S -o %t.ll -I %sycl_include -Wno-sycl-strict -Xclang -verify-ignore-unexpected=note,warning
// RUN: %clangxx -fsycl-device-only -Xclang -fsycl-is-device -emit-llvm %s -S -o %t.ll -I %sycl_include -Wno-sycl-strict -Xclang -verify-ignore-unexpected=note,warning -Xclang -disable-llvm-passes
// RUN: FileCheck %s --input-file %t.ll
//
// Check the address space of the pointer in multi_ptr class
Expand Down
2 changes: 1 addition & 1 deletion sycl/test/fpga_tests/ap_fixed.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl-device-only %s -o - | FileCheck %s
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl-device-only %s -o - -Xclang -disable-llvm-passes | FileCheck %s
//
//==---- ap_fixed.cpp - SYCL FPGA arbitrary precision fixed point test -----==//
//
Expand Down

0 comments on commit 57a63b0

Please sign in to comment.