From 3ec23cb5a6532aab86d0b335c683916869a9f9e9 Mon Sep 17 00:00:00 2001 From: Augie Fackler Date: Thu, 31 Jul 2025 15:25:25 -0400 Subject: [PATCH] tests: adapt array-cmp for llvm/llvm-project@f7b65011de51 The referenced commit adds a new llvm.loop.estimated_trip_count metadata entry, which shows up in this test. It was being erroneously captured by a too-broad regular expression, which this fixes such that the test passes both before and after the upstream change. --- tests/codegen-llvm/array-cmp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/codegen-llvm/array-cmp.rs b/tests/codegen-llvm/array-cmp.rs index 0d33765540176..6d937b40b0847 100644 --- a/tests/codegen-llvm/array-cmp.rs +++ b/tests/codegen-llvm/array-cmp.rs @@ -46,7 +46,7 @@ pub fn array_of_tuple_le(a: &[(i16, u16); 2], b: &[(i16, u16); 2]) -> bool { // CHECK: %[[B01:.+]] = load i16, ptr %[[PB01]] // CHECK-NOT: cmp // CHECK: %[[EQ01:.+]] = icmp eq i16 %[[A01]], %[[B01]] - // CHECK-NEXT: br i1 %[[EQ01]], label %[[L10:.+]], label %[[EXIT_U:.+]] + // CHECK-NEXT: br i1 %[[EQ01]], label %[[L10:.+]], label %[[EXIT_U:.+]]{{(, !llvm.loop ![0-9+])?}} // CHECK: [[L10]]: // CHECK: %[[PA10:.+]] = getelementptr{{.+}}i8, ptr %a, {{i32|i64}} 4