mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 06:43:20 +03:00
Bless codegen test.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#[no_mangle]
|
||||
pub fn slice_iter_len_eq_zero(y: std::slice::Iter<'_, Demo>) -> bool {
|
||||
// CHECK-NOT: sub
|
||||
// CHECK: %[[RET:.+]] = icmp eq ptr {{%y.0, %y.1|%y.1, %y.0}}
|
||||
// CHECK: %[[RET:.+]] = icmp eq ptr {{%0, %1|%1, %0}}
|
||||
// CHECK: ret i1 %[[RET]]
|
||||
y.len() == 0
|
||||
}
|
||||
@@ -31,7 +31,7 @@ pub fn slice_iter_len_eq_zero_ref(y: &mut std::slice::Iter<'_, Demo>) -> bool {
|
||||
// CHECK-LABEL: @slice_zst_iter_len_eq_zero
|
||||
#[no_mangle]
|
||||
pub fn slice_zst_iter_len_eq_zero(y: std::slice::Iter<'_, MyZST>) -> bool {
|
||||
// CHECK: %[[RET:.+]] = icmp eq ptr %y.1, null
|
||||
// CHECK: %[[RET:.+]] = icmp eq ptr %1, null
|
||||
// CHECK: ret i1 %[[RET]]
|
||||
y.len() == 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user