File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ pub struct Bytes {
26
26
#[ no_mangle]
27
27
#[ rustc_no_mir] // FIXME #27840 MIR has different codegen.
28
28
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]*
31
31
* x = y;
32
32
}
33
33
@@ -37,7 +37,7 @@ pub fn small_array_alignment(x: &mut [i8; 4], y: [i8; 4]) {
37
37
#[ no_mangle]
38
38
#[ rustc_no_mir] // FIXME #27840 MIR has different codegen.
39
39
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*
42
42
* x = y;
43
43
}
You can’t perform that action at this time.
0 commit comments