Skip to content

Commit 664305b

Browse files
Fznamznonjsji
authored andcommitted
[clang] Additional fix to a LIT test (#29107)
It seems the test was not passing spir triple for sycl device compilation, but was checking spir calling convention. After community changes spir calling convention stopped appearing for non-spir targets which is IMO correct. So the test needs the spir triple and some adjustments to make the checks correct.
1 parent a4a88f2 commit 664305b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/CodeGenSYCL/remove-restriction-builtin-printf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ int main() {
1010
q.submit([&](handler &h) {
1111
// CHECK: define {{.*}}spir_kernel {{.*}}
1212
h.single_task<class kernelA>([=]() {
13-
// CHECK: call {{.*}}printf(ptr noundef @{{.*}}, i32 noundef 24)
13+
// CHECK: call {{.*}}printf(ptr addrspace(4) noundef {{.*}}, i32 noundef 24)
1414
__builtin_printf("hello, %d\n", 24);
1515
});
1616
});

0 commit comments

Comments
 (0)