From 42b41da33823f10aa39ca594c76fe13be3f53e63 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Sun, 13 Feb 2022 13:19:57 +0000 Subject: [PATCH] Fix codegen tests --- src/test/codegen/drop.rs | 11 ++++++----- src/test/codegen/unwind-landingpad-cold.rs | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/test/codegen/drop.rs b/src/test/codegen/drop.rs index 543b81b0b6246..5e9ef23784349 100644 --- a/src/test/codegen/drop.rs +++ b/src/test/codegen/drop.rs @@ -23,13 +23,14 @@ pub fn droppy() { // FIXME(eddyb) the `void @` forces a match on the instruction, instead of the // comment, that's `; call core::ptr::drop_in_place::` // for the `v0` mangling, should switch to matching on that once `legacy` is gone. -// CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName -// CHECK: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName +// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName +// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName +// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName +// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName +// CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName +// CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK-NOT: call void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName // CHECK-NOT: invoke void @{{.*}}drop_in_place{{.*}}SomeUniqueName diff --git a/src/test/codegen/unwind-landingpad-cold.rs b/src/test/codegen/unwind-landingpad-cold.rs index 650d5b230f4c2..432f60f335b41 100644 --- a/src/test/codegen/unwind-landingpad-cold.rs +++ b/src/test/codegen/unwind-landingpad-cold.rs @@ -6,7 +6,7 @@ // get the `cold` attribute. // CHECK-LABEL: @check_cold -// CHECK: call void {{.+}}drop_in_place{{.+}} [[ATTRIBUTES:#[0-9]+]] +// CHECK: invoke void {{.+}}drop_in_place{{.+}} [[ATTRIBUTES:#[0-9]+]] // CHECK: attributes [[ATTRIBUTES]] = { cold } #[no_mangle] pub fn check_cold(f: fn(), x: Box) {