[clang] cc7dc90 - [test] Fix const-str-array-decay.cl failure on PowerPC

Sergei Barannikov via cfe-commits cfe-commits at lists.llvm.org
Mon May 15 09:57:05 PDT 2023


Author: Sergei Barannikov
Date: 2023-05-15T19:56:28+03:00
New Revision: cc7dc90481d93734a56098470879189cb2e2c127

URL: https://github.com/llvm/llvm-project/commit/cc7dc90481d93734a56098470879189cb2e2c127
DIFF: https://github.com/llvm/llvm-project/commit/cc7dc90481d93734a56098470879189cb2e2c127.diff

LOG: [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.

Added: 
    

Modified: 
    clang/test/CodeGenOpenCL/const-str-array-decay.cl

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenOpenCL/const-str-array-decay.cl b/clang/test/CodeGenOpenCL/const-str-array-decay.cl
index c078b89622f5..0bffe92d6565 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


        


More information about the cfe-commits mailing list