Skip to content

Commit 04c030d

Browse files
committed
Fix SYCL lit-tests after 1b1c8d8 by adding -disable-noundef-analysis to run-lines
1 parent 6a6ec9f commit 04c030d

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

sycl/test/check_device_code/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 - -Xclang -disable-llvm-passes | FileCheck %s
1+
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl-device-only %s -o - -Xclang -disable-llvm-passes -Xclang -disable-noundef-analysis | FileCheck %s
22
//
33
//==---- ap_fixed.cpp - SYCL FPGA arbitrary precision fixed point test -----==//
44
//

sycl/test/check_device_code/fpga_ihs_float.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl -fsycl-device-only %s -o - | FileCheck %s
10-
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl -fno-sycl-early-optimizations -fsycl-device-only %s -o - | FileCheck %s
9+
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl -fsycl-device-only -Xclang -disable-noundef-analysis %s -o - | FileCheck %s
10+
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl -fno-sycl-early-optimizations -fsycl-device-only -Xclang -disable-noundef-analysis %s -o - | FileCheck %s
1111

1212
#include "CL/__spirv/spirv_ops.hpp"
1313

sycl/test/check_device_code/group_barrier.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 -fsycl-unnamed-lambda -S -Xclang -emit-llvm %s -o - | FileCheck %s
1+
// RUN: %clangxx -fsycl-device-only -fsycl-unnamed-lambda -S -Xclang -emit-llvm -Xclang -disable-noundef-analysis %s -o - | FileCheck %s
22
#include <sycl/sycl.hpp>
33

44
const auto TestLambda = [](auto G) {

sycl/test/check_device_code/group_operations.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 -Xclang -disable-noundef-analysis %s -o - | FileCheck %s
22

33
#include <CL/sycl.hpp>
44

sycl/test/check_device_code/sub_group_mask.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 - -Xclang -disable-llvm-passes | FileCheck %s
1+
// RUN: %clangxx -I %sycl_include -S -emit-llvm -fsycl-device-only %s -o - -Xclang -disable-llvm-passes -Xclang -disable-noundef-analysis | FileCheck %s
22

33
#include <CL/sycl.hpp>
44

sycl/test/esimd/simd_view_bin_op.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl -fsycl-device-only -S -emit-llvm -x c++ %s -o - | FileCheck %s
1+
// RUN: %clangxx -fsycl -fsycl-device-only -S -emit-llvm -x c++ -Xclang -disable-noundef-analysis %s -o - | FileCheck %s
22

33
// This test checks that arithmetic or compare operation on simd_view and
44
// scalar does not truncate scalar to the view's element type.

sycl/test/extensions/bfloat16.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 -fsycl-targets=%sycl_triple -S %s -o - | FileCheck %s
1+
// RUN: %clangxx -fsycl-device-only -fsycl-targets=%sycl_triple -S -Xclang -disable-noundef-analysis %s -o - | FileCheck %s
22

33
// UNSUPPORTED: cuda || hip_amd
44

sycl/test/extensions/sub_group_as.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-device-only -O3 -S -emit-llvm -x c++ %s -o - | FileCheck %s --check-prefix CHECK-O3
2-
// RUN: %clangxx -fsycl -fsycl-device-only -O0 -S -emit-llvm -x c++ %s -o - | FileCheck %s --check-prefix CHECK-O0
1+
// RUN: %clangxx -fsycl -fsycl-device-only -O3 -S -emit-llvm -x c++ -Xclang -disable-noundef-analysis %s -o - | FileCheck %s --check-prefix CHECK-O3
2+
// RUN: %clangxx -fsycl -fsycl-device-only -O0 -S -emit-llvm -x c++ -Xclang -disable-noundef-analysis %s -o - | FileCheck %s --check-prefix CHECK-O0
33
// Test compilation with -O3 when all methods are inlined in kernel function
44
// and -O0 when helper methods are preserved.
55
#include <CL/sycl.hpp>

0 commit comments

Comments
 (0)