@@ -20,14 +20,14 @@ pub struct Bytes {
2020// CHECK-LABEL: @borrow
2121#[ no_mangle]
2222pub fn borrow ( x : & i32 ) -> & i32 {
23- // CHECK: load i32*, i32** %x{{.*}}, !nonnull
23+ // CHECK: load {{( i32\ *, )?}} i32** %x{{.*}}, !nonnull
2424 x
2525}
2626
2727// CHECK-LABEL: @_box
2828#[ no_mangle]
2929pub fn _box ( x : Box < i32 > ) -> i32 {
30- // CHECK: load i32*, i32** %x{{.*}}, !nonnull
30+ // CHECK: load {{( i32\ *, )?}} i32** %x{{.*}}, !nonnull
3131 * x
3232}
3333
@@ -36,7 +36,7 @@ pub fn _box(x: Box<i32>) -> i32 {
3636// dependent alignment
3737#[ no_mangle]
3838pub 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
4040// CHECK: ret i32 [[VAR]]
4141 x
4242}
@@ -46,7 +46,7 @@ pub fn small_array_alignment(x: [i8; 4]) -> [i8; 4] {
4646// dependent alignment
4747#[ no_mangle]
4848pub 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
5050// CHECK: ret i32 [[VAR]]
5151 x
5252}
0 commit comments