[clang] eb26baf - Fix test bool-range.cu

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 7 08:18:35 PDT 2022


Author: Yaxun (Sam) Liu
Date: 2022-10-07T11:17:28-04:00
New Revision: eb26baf4ade6c1e73eb14e8a89d5771e57bc61a3

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

LOG: Fix test bool-range.cu

Promoting kernel arg pointer to global addr space is only
available with registered amdgcn target.

Fix test so that it does not require registered amdgcn target.

Added: 
    

Modified: 
    clang/test/CodeGenCUDA/bool-range.cu

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenCUDA/bool-range.cu b/clang/test/CodeGenCUDA/bool-range.cu
index 5dc68612e7191..e33174a2ad670 100644
--- a/clang/test/CodeGenCUDA/bool-range.cu
+++ b/clang/test/CodeGenCUDA/bool-range.cu
@@ -14,10 +14,10 @@
 // TODO: Re-enable range metadata after issue
 // https://github.com/llvm/llvm-project/issues/58176 is fixed.
 
-// AMD:  %[[LD:[0-9]+]] = load i8, ptr addrspace(1) %x.global
+// AMD:  %[[LD:[0-9]+]] = load i8, ptr {{.*}}%x
 // AMD-NOT: !range
 // AMD:  %[[AND:[0-9]+]] = and i8 %[[LD]], 1
-// AMD:  store i8 %[[AND]], ptr addrspace(1) %y.global
+// AMD:  store i8 %[[AND]], ptr {{.*}}%y
 __global__ void test1(bool *x, bool *y) {
   *y = *x != false;
 }


        


More information about the cfe-commits mailing list