Skip to content

Commit 3798bca

Browse files
committed
Bless codegen tests.
1 parent b542c55 commit 3798bca

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/codegen/slice-ref-equality.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -44,48 +44,48 @@ pub fn is_zero_array(data: &[u8; 4]) -> bool {
4444
// equality for non-byte types also just emit a `bcmp`, not a loop.
4545

4646
// CHECK-LABEL: @eq_slice_of_nested_u8(
47-
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %x.1
48-
// CHECK-SAME: [[USIZE]] noundef %y.1
47+
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %1
48+
// CHECK-SAME: [[USIZE]] noundef %3
4949
#[no_mangle]
5050
fn eq_slice_of_nested_u8(x: &[[u8; 3]], y: &[[u8; 3]]) -> bool {
51-
// CHECK: icmp eq [[USIZE]] %x.1, %y.1
52-
// CHECK: %[[BYTES:.+]] = mul nsw [[USIZE]] %x.1, 3
51+
// CHECK: icmp eq [[USIZE]] %1, %3
52+
// CHECK: %[[BYTES:.+]] = mul nsw [[USIZE]] %1, 3
5353
// CHECK: tail call{{( noundef)?}} i32 @{{bcmp|memcmp}}(ptr
5454
// CHECK-SAME: , [[USIZE]]{{( noundef)?}} %[[BYTES]])
5555
x == y
5656
}
5757

5858
// CHECK-LABEL: @eq_slice_of_i32(
59-
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %x.1
60-
// CHECK-SAME: [[USIZE]] noundef %y.1
59+
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %1
60+
// CHECK-SAME: [[USIZE]] noundef %3
6161
#[no_mangle]
6262
fn eq_slice_of_i32(x: &[i32], y: &[i32]) -> bool {
63-
// CHECK: icmp eq [[USIZE]] %x.1, %y.1
64-
// CHECK: %[[BYTES:.+]] = shl nsw [[USIZE]] %x.1, 2
63+
// CHECK: icmp eq [[USIZE]] %1, %3
64+
// CHECK: %[[BYTES:.+]] = shl nsw [[USIZE]] %1, 2
6565
// CHECK: tail call{{( noundef)?}} i32 @{{bcmp|memcmp}}(ptr
6666
// CHECK-SAME: , [[USIZE]]{{( noundef)?}} %[[BYTES]])
6767
x == y
6868
}
6969

7070
// CHECK-LABEL: @eq_slice_of_nonzero(
71-
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %x.1
72-
// CHECK-SAME: [[USIZE]] noundef %y.1
71+
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %1
72+
// CHECK-SAME: [[USIZE]] noundef %3
7373
#[no_mangle]
7474
fn eq_slice_of_nonzero(x: &[NonZeroU32], y: &[NonZeroU32]) -> bool {
75-
// CHECK: icmp eq [[USIZE]] %x.1, %y.1
76-
// CHECK: %[[BYTES:.+]] = shl nsw [[USIZE]] %x.1, 2
75+
// CHECK: icmp eq [[USIZE]] %1, %3
76+
// CHECK: %[[BYTES:.+]] = shl nsw [[USIZE]] %1, 2
7777
// CHECK: tail call{{( noundef)?}} i32 @{{bcmp|memcmp}}(ptr
7878
// CHECK-SAME: , [[USIZE]]{{( noundef)?}} %[[BYTES]])
7979
x == y
8080
}
8181

8282
// CHECK-LABEL: @eq_slice_of_option_of_nonzero(
83-
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %x.1
84-
// CHECK-SAME: [[USIZE]] noundef %y.1
83+
// CHECK-SAME: [[USIZE:i16|i32|i64]] noundef %1
84+
// CHECK-SAME: [[USIZE]] noundef %3
8585
#[no_mangle]
8686
fn eq_slice_of_option_of_nonzero(x: &[Option<NonZeroI16>], y: &[Option<NonZeroI16>]) -> bool {
87-
// CHECK: icmp eq [[USIZE]] %x.1, %y.1
88-
// CHECK: %[[BYTES:.+]] = shl nsw [[USIZE]] %x.1, 1
87+
// CHECK: icmp eq [[USIZE]] %1, %3
88+
// CHECK: %[[BYTES:.+]] = shl nsw [[USIZE]] %1, 1
8989
// CHECK: tail call{{( noundef)?}} i32 @{{bcmp|memcmp}}(ptr
9090
// CHECK-SAME: , [[USIZE]]{{( noundef)?}} %[[BYTES]])
9191
x == y

0 commit comments

Comments
 (0)