[HIP, test] Fix use of undef FileCheck var
authorThomas Preud'homme <thomasp@graphcore.ai>
Sat, 3 Apr 2021 08:29:38 +0000 (09:29 +0100)
committerThomas Preud'homme <thomasp@graphcore.ai>
Sun, 4 Apr 2021 18:30:49 +0000 (19:30 +0100)
Clang test CodeGenCUDA/kernel-stub-name.cu uses never defined DKERN
variable in a CHECK-NOT directive. This commit replace the variable by a
regex, thereby avoiding the issue.

Reviewed By: yaxunl

Differential Revision: https://reviews.llvm.org/D99832

clang/test/CodeGenCUDA/kernel-stub-name.cu

index 0c504b6..460dd60 100644 (file)
@@ -126,4 +126,4 @@ void fun5() {
 // CHECK: call{{.*}}@__hipRegisterFunction{{.*}}@[[HCKERN]]{{.*}}@[[CKERN]]
 // CHECK: call{{.*}}@__hipRegisterFunction{{.*}}@[[HNSKERN]]{{.*}}@[[NSKERN]]
 // CHECK: call{{.*}}@__hipRegisterFunction{{.*}}@[[HTKERN]]{{.*}}@[[TKERN]]
-// CHECK-NOT: call{{.*}}@__hipRegisterFunction{{.*}}@[[HDKERN]]{{.*}}@[[DKERN]]
+// CHECK-NOT: call{{.*}}@__hipRegisterFunction{{.*}}@[[HDKERN]]{{.*}}@{{[0-9]*}}