[Openmp-commits] [openmp] 0c86c4f - [OpenMP] Fix test error introduced in D130179
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 22 11:17:33 PDT 2022
Author: Shilei Tian
Date: 2022-07-22T14:16:47-04:00
New Revision: 0c86c4f50c1977850334d5841d900ca7538a8488
URL: https://github.com/llvm/llvm-project/commit/0c86c4f50c1977850334d5841d900ca7538a8488
DIFF: https://github.com/llvm/llvm-project/commit/0c86c4f50c1977850334d5841d900ca7538a8488.diff
LOG: [OpenMP] Fix test error introduced in D130179
Added:
Modified:
llvm/test/Transforms/OpenMP/add_attributes.ll
openmp/libomptarget/test/offloading/wtime.c
Removed:
################################################################################
diff --git a/llvm/test/Transforms/OpenMP/add_attributes.ll b/llvm/test/Transforms/OpenMP/add_attributes.ll
index cf8dee300d1bb..d060b88e8ce89 100644
--- a/llvm/test/Transforms/OpenMP/add_attributes.ll
+++ b/llvm/test/Transforms/OpenMP/add_attributes.ll
@@ -773,8 +773,8 @@ attributes #0 = { noinline cold }
; CHECK-NOT: Function Attrs
; CHECK: declare dso_local void @omp_init_nest_lock_with_hint(%struct.omp_nest_lock_t*, i32)
-; CHECK-NOT: Function Attrs
-; CHECK: declare dso_local double @omp_get_wtime()
+; CHECK: ; Function Attrs: nounwind
+; CHECK-NEXT: declare dso_local double @omp_get_wtime()
; CHECK-NOT: Function Attrs
; CHECK: declare dso_local void @use_double(double)
@@ -1313,8 +1313,8 @@ attributes #0 = { noinline cold }
; OPTIMISTIC-NOT: Function Attrs
; OPTIMISTIC: declare dso_local void @omp_init_nest_lock_with_hint(%struct.omp_nest_lock_t*, i32)
-; OPTIMISTIC-NOT: Function Attrs
-; OPTIMISTIC: declare dso_local double @omp_get_wtime()
+; OPTIMISTIC: ; Function Attrs: inaccessiblememonly nofree nosync nounwind readonly willreturn
+; OPTIMISTIC-NEXT: declare dso_local double @omp_get_wtime()
; OPTIMISTIC-NOT: Function Attrs
; OPTIMISTIC: declare dso_local void @use_double(double)
@@ -1736,7 +1736,7 @@ attributes #0 = { noinline cold }
; OPTIMISTIC: ; Function Attrs: nofree nosync nounwind willreturn
; OPTIMISTIC-NEXT: declare void @__kmpc_proxy_task_completed_ooo(i8*)
-; OPTIMISTIC: ; Function Attrs: cold convergent noinline nounwind
+; OPTIMISTIC: ; Function Attrs: cold convergent noinline nounwind
; OPTIMISTIC-NEXT: declare void @__kmpc_barrier_simple_spmd(%struct.ident_t* nocapture nofree readonly, i32)
!llvm.module.flags = !{!0}
diff --git a/openmp/libomptarget/test/offloading/wtime.c b/openmp/libomptarget/test/offloading/wtime.c
index bc2e1f79907eb..6ad2f9cc88a72 100644
--- a/openmp/libomptarget/test/offloading/wtime.c
+++ b/openmp/libomptarget/test/offloading/wtime.c
@@ -21,4 +21,4 @@ int main(int argc, char *argv[]) {
return 0;
}
-// CHECK: duration: [1-9]+
+// CHECK: duration: {{.+[1-9]+}}
More information about the Openmp-commits
mailing list