Skip to content

Commit 57a63b0

Browse files
authored
[SYCL][NFC] Make lit tests agnostic to compiler optimizations (#2089)
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.
1 parent 27b5f71 commit 57a63b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sycl/test/check_device_code/kernel_arguments_as.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 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
1+
// 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
22
// RUN: FileCheck %s --input-file %t.ll
33
//
44
// Check the address space of the pointer in accessor class.

sycl/test/check_device_code/usm_pointers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// 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
1+
// 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
22
// RUN: FileCheck %s --input-file %t.ll
33
//
44
// Check the address space of the pointer in multi_ptr class

sycl/test/fpga_tests/ap_fixed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl-device-only %s -o - | FileCheck %s
1+
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl-device-only %s -o - -Xclang -disable-llvm-passes | FileCheck %s
22
//
33
//==---- ap_fixed.cpp - SYCL FPGA arbitrary precision fixed point test -----==//
44
//

0 commit comments

Comments
 (0)