From cc7dc90481d93734a56098470879189cb2e2c127 Mon Sep 17 00:00:00 2001 From: Sergei Barannikov Date: Mon, 15 May 2023 19:54:40 +0300 Subject: [PATCH] [test] Fix const-str-array-decay.cl failure on PowerPC D150520 converted the test to use opaque pointers. The update version fails on PowerPC because of different return type of the function. This patch resolves the failure by removing the return type check; it also makes the test look more like it was before the conversion to prevent other potential issues caused by ABI differences across targets. --- clang/test/CodeGenOpenCL/const-str-array-decay.cl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang/test/CodeGenOpenCL/const-str-array-decay.cl b/clang/test/CodeGenOpenCL/const-str-array-decay.cl index c078b89..0bffe92 100644 --- a/clang/test/CodeGenOpenCL/const-str-array-decay.cl +++ b/clang/test/CodeGenOpenCL/const-str-array-decay.cl @@ -6,4 +6,5 @@ kernel void str_array_decy() { test_func("Test string literal"); } -// CHECK: call i32 @test_func(ptr addrspace(2) noundef @{{.*}}) +// CHECK: ptr addrspace(2) noundef +// CHECK-NOT: addrspacecast -- 2.7.4