Skip to content

Commit 5b40452

Browse files
committed
Fix stores codegen pass
1 parent 2f0da79 commit 5b40452

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/codegen/stores.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ pub struct Bytes {
2626
#[no_mangle]
2727
#[rustc_no_mir] // FIXME #27840 MIR has different codegen.
2828
pub fn small_array_alignment(x: &mut [i8; 4], y: [i8; 4]) {
29-
// CHECK: [[VAR:%[0-9]+]] = bitcast [4 x i8]* %y to i32*
30-
// CHECK: store i32 %{{.*}}, i32* [[VAR]], align 1
29+
// CHECK: store i32 %{{.*}}, i32* %{{.*}}, align 1
30+
// CHECK: [[VAR:%[0-9]+]] = bitcast i32* %{{.*}} to [4 x i8]*
3131
*x = y;
3232
}
3333

@@ -37,7 +37,7 @@ pub fn small_array_alignment(x: &mut [i8; 4], y: [i8; 4]) {
3737
#[no_mangle]
3838
#[rustc_no_mir] // FIXME #27840 MIR has different codegen.
3939
pub fn small_struct_alignment(x: &mut Bytes, y: Bytes) {
40-
// CHECK: [[VAR:%[0-9]+]] = bitcast %Bytes* %y to i32*
41-
// CHECK: store i32 %{{.*}}, i32* [[VAR]], align 1
40+
// CHECK: store i32 %{{.*}}, i32* %{{.*}}, align 1
41+
// CHECK: [[VAR:%[0-9]+]] = bitcast i32* %{{.*}} to %Bytes*
4242
*x = y;
4343
}

0 commit comments

Comments
 (0)