Skip to content

Commit 11e643e

Browse files
committed
[CIR] Relax spir-calling-conv.cl in face of lowering error
Failure: ``` calling convention does not permit calls call spir_kernel void @bar(ptr addrspace(1) %10) fatal error: error in backend: Lowering from LLVMIR dialect to llvm IR failed! ```
1 parent 69f2099 commit 11e643e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clang/test/CIR/CodeGen/OpenCL/spir-calling-conv.cl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// XFAIL: *
21
// RUN: %clang_cc1 -fclangir %s -O0 -triple "spirv64-unknown-unknown" -emit-cir -o %t.cir
32
// RUN: FileCheck %s --input-file=%t.cir --check-prefix=CIR
4-
// RUN: %clang_cc1 -fclangir %s -O0 -triple "spirv64-unknown-unknown" -emit-llvm -fno-clangir-call-conv-lowering -o %t.ll
5-
// RUN: FileCheck %s --input-file=%t.ll --check-prefix=LLVM
3+
// RUN-DISABLE: %clang_cc1 -fclangir %s -O0 -triple "spirv64-unknown-unknown" -emit-llvm -fno-clangir-call-conv-lowering -o %t.ll
4+
// RUN-DISABLE: FileCheck %s --input-file=%t.ll --check-prefix=LLVM
65

76
// CIR: cir.func {{.*}}@get_dummy_id{{.*}} cc(spir_function)
87
// LLVM-DAG: declare{{.*}} spir_func i32 @get_dummy_id(

0 commit comments

Comments
 (0)