[OpenMP] Fix test error introduced in D130179

This commit is contained in:
Shilei Tian 2022-07-22 14:16:47 -04:00
parent 74cb8dfaac
commit 0c86c4f50c
2 changed files with 6 additions and 6 deletions

View File

@ -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}

View File

@ -21,4 +21,4 @@ int main(int argc, char *argv[]) {
return 0;
}
// CHECK: duration: [1-9]+
// CHECK: duration: {{.+[1-9]+}}