Skip to content

Commit 0598c80

Browse files
zahiraamjsji
authored andcommitted
Fix Clang :: OpenMP/spirv_variant_match.cpp (#32471)
It looks like the IR output includes an additional `addrspace` qualifier in the call instruction. The regular expression has been adjusted to make matching of call attributes more robust.
1 parent 41f4482 commit 0598c80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/OpenMP/spirv_variant_match.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ int foo() { return 1; }
3737

3838
// CHECK-DAG: define{{.*}} @_Z3foov()
3939

40-
// CHECK-DAG: call spir_func noundef i32 @_Z3foov()
41-
// TDK_GPU-DAG: call spir_func noundef i32 @"_Z25foo$ompvariant$S3$s8$Pgpuv"()
42-
// DK_GPU-DAG: call spir_func noundef i32 @"_Z25foo$ompvariant$S2$s6$Pgpuv"()
40+
// CHECK-DAG: call {{.*}}@_Z3foov()
41+
// TDK_GPU-DAG: call {{.*}}@"_Z25foo$ompvariant$S3$s8$Pgpuv"()
42+
// DK_GPU-DAG: call {{.*}}@"_Z25foo$ompvariant$S2$s6$Pgpuv"()
4343

4444
int main() {
4545
int res;

0 commit comments

Comments
 (0)