[test] Fix const-str-array-decay.cl failure on PowerPC
authorSergei Barannikov <barannikov88@gmail.com>
Mon, 15 May 2023 16:54:40 +0000 (19:54 +0300)
committerSergei Barannikov <barannikov88@gmail.com>
Mon, 15 May 2023 16:56:28 +0000 (19:56 +0300)
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

index c078b89622f57226c255e8ac5aec5579a3f1481e..0bffe92d6565dce8024c23875598c5e560ebe4fa 100644 (file)
@@ -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