14
14
15
15
// This checks the constants from {low,high}_align_const, they share the same
16
16
// 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), {{.*}},
18
18
19
19
#[ derive( Copy , Clone ) ]
20
-
21
20
// repr(i16) is required for the {low,high}_align_const test
22
21
#[ repr( i16 ) ]
23
22
pub enum E < A , B > {
@@ -31,7 +30,7 @@ pub static STATIC: E<i16, i32> = E::A(0);
31
30
// CHECK-LABEL: @static_enum_const
32
31
#[ no_mangle]
33
32
pub fn static_enum_const ( ) -> E < i16 , i32 > {
34
- STATIC
33
+ STATIC
35
34
}
36
35
37
36
// CHECK-LABEL: @inline_enum_const
@@ -43,15 +42,15 @@ pub fn inline_enum_const() -> E<i8, i16> {
43
42
// CHECK-LABEL: @low_align_const
44
43
#[ no_mangle]
45
44
pub 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]>"**),
48
47
* & E :: A ( 0 )
49
48
}
50
49
51
50
// CHECK-LABEL: @high_align_const
52
51
#[ no_mangle]
53
52
pub 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>"**),
56
55
* & E :: A ( 0 )
57
56
}
0 commit comments