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


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to