1414
1515// This checks the constants from {low,high}_align_const, they share the same
1616// constant, but the alignment differs, so the higher one should be used
17- // CHECK: [[LOW_HIGH:@[0-9]+]] = {{.*}} getelementptr inbounds (<{ [8 x i8] }>, <{ [8 x i8] }>* @2, i32 0, i32 0, i32 0), {{.*}}, align 8
17+ // CHECK: [[LOW_HIGH:@[0-9]+]] = {{.*}} getelementptr inbounds (<{ [8 x i8] }>, <{ [8 x i8] }>* @2, i32 0, i32 0, i32 0), {{.*}},
1818
1919#[ derive( Copy , Clone ) ]
20-
2120// repr(i16) is required for the {low,high}_align_const test
2221#[ repr( i16 ) ]
2322pub enum E < A , B > {
@@ -31,7 +30,7 @@ pub static STATIC: E<i16, i32> = E::A(0);
3130// CHECK-LABEL: @static_enum_const
3231#[ no_mangle]
3332pub fn static_enum_const ( ) -> E < i16 , i32 > {
34- STATIC
33+ STATIC
3534}
3635
3736// CHECK-LABEL: @inline_enum_const
@@ -43,15 +42,15 @@ pub fn inline_enum_const() -> E<i8, i16> {
4342// CHECK-LABEL: @low_align_const
4443#[ no_mangle]
4544pub fn low_align_const ( ) -> E < i16 , [ i16 ; 3 ] > {
46- // Check that low_align_const and high_align_const use the same constant
47- // CHECK: load %"E<i16, [i16; 3]>"*, %"E<i16, [i16; 3]>"** bitcast (<{ i8*, [0 x i8] }>* [[LOW_HIGH]] to %"E<i16, [i16; 3]>"**), align 8
45+ // Check that low_align_const and high_align_const use the same constant
46+ // CHECK: load %"E<i16, [i16; 3]>"*, %"E<i16, [i16; 3]>"** bitcast (<{ i8*, [0 x i8] }>* [[LOW_HIGH]] to %"E<i16, [i16; 3]>"**),
4847 * & E :: A ( 0 )
4948}
5049
5150// CHECK-LABEL: @high_align_const
5251#[ no_mangle]
5352pub fn high_align_const ( ) -> E < i16 , i32 > {
54- // Check that low_align_const and high_align_const use the same constant
55- // CHECK: load %"E<i16, i32>"*, %"E<i16, i32>"** bitcast (<{ i8*, [0 x i8] }>* [[LOW_HIGH]] to %"E<i16, i32>"**), align 8
53+ // Check that low_align_const and high_align_const use the same constant
54+ // CHECK: load %"E<i16, i32>"*, %"E<i16, i32>"** bitcast (<{ i8*, [0 x i8] }>* [[LOW_HIGH]] to %"E<i16, i32>"**),
5655 * & E :: A ( 0 )
5756}
0 commit comments