Fix test bool-range.cu
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Fri, 7 Oct 2022 15:17:08 +0000 (11:17 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Fri, 7 Oct 2022 15:17:28 +0000 (11:17 -0400)
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.

clang/test/CodeGenCUDA/bool-range.cu

index 5dc6861..e33174a 100644 (file)
 // 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;
 }