File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ pub struct Bytes {
2626#[ no_mangle]
2727#[ rustc_no_mir] // FIXME #27840 MIR has different codegen.
2828pub 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.
3939pub 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}
You can’t perform that action at this time.
0 commit comments