@@ -20,14 +20,14 @@ pub struct Bytes {
20
20
// CHECK-LABEL: @borrow
21
21
#[ no_mangle]
22
22
pub fn borrow ( x : & i32 ) -> & i32 {
23
- // CHECK: load i32*, i32** %x{{.*}}, !nonnull
23
+ // CHECK: load {{( i32\ *, )?}} i32** %x{{.*}}, !nonnull
24
24
x
25
25
}
26
26
27
27
// CHECK-LABEL: @_box
28
28
#[ no_mangle]
29
29
pub fn _box ( x : Box < i32 > ) -> i32 {
30
- // CHECK: load i32*, i32** %x{{.*}}, !nonnull
30
+ // CHECK: load {{( i32\ *, )?}} i32** %x{{.*}}, !nonnull
31
31
* x
32
32
}
33
33
@@ -36,7 +36,7 @@ pub fn _box(x: Box<i32>) -> i32 {
36
36
// dependent alignment
37
37
#[ no_mangle]
38
38
pub fn small_array_alignment ( x : [ i8 ; 4 ] ) -> [ i8 ; 4 ] {
39
- // CHECK: [[VAR:%[0-9]+]] = load i32, i32* %{{.*}}, align 1
39
+ // CHECK: [[VAR:%[0-9]+]] = load {{( i32, )?}} i32* %{{.*}}, align 1
40
40
// CHECK: ret i32 [[VAR]]
41
41
x
42
42
}
@@ -46,7 +46,7 @@ pub fn small_array_alignment(x: [i8; 4]) -> [i8; 4] {
46
46
// dependent alignment
47
47
#[ no_mangle]
48
48
pub fn small_struct_alignment ( x : Bytes ) -> Bytes {
49
- // CHECK: [[VAR:%[0-9]+]] = load i32, i32* %{{.*}}, align 1
49
+ // CHECK: [[VAR:%[0-9]+]] = load {{( i32, )?}} i32* %{{.*}}, align 1
50
50
// CHECK: ret i32 [[VAR]]
51
51
x
52
52
}
0 commit comments