Skip to content

Commit 73a5990

Browse files
committed
Bless codegen test.
1 parent 01c937b commit 73a5990

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/codegen-llvm/slice-iter-len-eq-zero.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type Demo = [u8; 3];
88
#[no_mangle]
99
pub fn slice_iter_len_eq_zero(y: std::slice::Iter<'_, Demo>) -> bool {
1010
// CHECK-NOT: sub
11-
// CHECK: %[[RET:.+]] = icmp eq ptr {{%y.0, %y.1|%y.1, %y.0}}
11+
// CHECK: %[[RET:.+]] = icmp eq ptr {{%0, %1|%1, %0}}
1212
// CHECK: ret i1 %[[RET]]
1313
y.len() == 0
1414
}
@@ -31,7 +31,7 @@ struct MyZST;
3131
// CHECK-LABEL: @slice_zst_iter_len_eq_zero
3232
#[no_mangle]
3333
pub fn slice_zst_iter_len_eq_zero(y: std::slice::Iter<'_, MyZST>) -> bool {
34-
// CHECK: %[[RET:.+]] = icmp eq ptr %y.1, null
34+
// CHECK: %[[RET:.+]] = icmp eq ptr %1, null
3535
// CHECK: ret i1 %[[RET]]
3636
y.len() == 0
3737
}

0 commit comments

Comments
 (0)