@@ -436,7 +436,7 @@ let test_global_values () =
436436 set_dll_storage_class DLLStorageClass. DLLExport in
437437 insist (DLLStorageClass. DLLExport = dll_storage_class g);
438438
439- (* CHECK: GVal07{{.*}}!test !{{.*}}
439+ (* CHECK: GVal07{{.*}}!test !0
440440 * See metadata check at the end of the file.
441441 *)
442442 group " metadata" ;
@@ -1126,9 +1126,7 @@ let test_builder () =
11261126 end ;
11271127
11281128 group " metadata" ; begin
1129- (* CHECK: %metadata = add i32 %P1, %P2, !test !{{[0-9]+}}
1130- * Number of metadata nodes is not predictable, so we just check for
1131- * the presence of metadata here
1129+ (* CHECK: %metadata = add i32 %P1, %P2, !test !2
11321130 *)
11331131 let i = build_add p1 p2 " metadata" atentry in
11341132 insist ((has_metadata i) = false );
@@ -1444,10 +1442,10 @@ let test_builder () =
14441442 end
14451443
14461444(* End-of-file checks for things like metdata and attributes.
1447- * CHECK: !llvm.module.flags = !{!{{[0-9]+}}}
1448- * CHECK: !{{[0-9]+}} = !{i32 0, !"global test metadata"}
1449- * CHECK: !{{[0-9]+}} = !{i32 1, !"Debug Info Version", i32 3}
1450- * CHECK: !{{[0-9]+}} = !{i32 1, !"metadata test"}
1445+ * CHECK: !llvm.module.flags = !1
1446+ * CHECK: !0 = !{i32 0, !"global test metadata"}
1447+ * CHECK: !1 = !{i32 1, !"Debug Info Version", i32 3}
1448+ * CHECK: !2 = !{i32 1, !"metadata test"}
14511449 *)
14521450
14531451
0 commit comments