Skip to content

Commit 3ec23cb

Browse files
committed
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.
1 parent 3fb1b53 commit 3ec23cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/codegen-llvm/array-cmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub fn array_of_tuple_le(a: &[(i16, u16); 2], b: &[(i16, u16); 2]) -> bool {
4646
// CHECK: %[[B01:.+]] = load i16, ptr %[[PB01]]
4747
// CHECK-NOT: cmp
4848
// CHECK: %[[EQ01:.+]] = icmp eq i16 %[[A01]], %[[B01]]
49-
// CHECK-NEXT: br i1 %[[EQ01]], label %[[L10:.+]], label %[[EXIT_U:.+]]
49+
// CHECK-NEXT: br i1 %[[EQ01]], label %[[L10:.+]], label %[[EXIT_U:.+]]{{(, !llvm.loop ![0-9+])?}}
5050

5151
// CHECK: [[L10]]:
5252
// CHECK: %[[PA10:.+]] = getelementptr{{.+}}i8, ptr %a, {{i32|i64}} 4

0 commit comments

Comments
 (0)