|
9 | 9 | // CHECK: @STATIC = {{.*}}, align 4 |
10 | 10 |
|
11 | 11 | // This checks the constants from inline_enum_const |
12 | | -// CHECK: @alloc_af1f8e8e6f4b341431a1d405e652df2d = {{.*}}, align 2 |
| 12 | +// CHECK: @0 = {{.*}}, align 2 |
13 | 13 |
|
14 | 14 | // This checks the constants from {low,high}_align_const, they share the same |
15 | 15 | // constant, but the alignment differs, so the higher one should be used |
16 | | -// CHECK: [[LOW_HIGH:@alloc_[a-f0-9]+]] = {{.*}}, align 4 |
| 16 | +// CHECK: @1 = {{.*}}, align 4 |
17 | 17 |
|
18 | 18 | #[derive(Copy, Clone)] |
19 | 19 | // repr(i16) is required for the {low,high}_align_const test |
@@ -42,14 +42,14 @@ pub fn inline_enum_const() -> E<i8, i16> { |
42 | 42 | #[no_mangle] |
43 | 43 | pub fn low_align_const() -> E<i16, [i16; 3]> { |
44 | 44 | // Check that low_align_const and high_align_const use the same constant |
45 | | - // CHECK: memcpy.{{.+}}(ptr align 2 %_0, ptr align 2 {{.*}}[[LOW_HIGH]]{{.*}}, i{{(32|64)}} 8, i1 false) |
| 45 | + // CHECK: memcpy.{{.+}}(ptr align 2 %_0, ptr align 2 {{.*}}@1{{.*}}, i{{(32|64)}} 8, i1 false) |
46 | 46 | *&E::A(0) |
47 | 47 | } |
48 | 48 |
|
49 | 49 | // CHECK-LABEL: @high_align_const |
50 | 50 | #[no_mangle] |
51 | 51 | pub fn high_align_const() -> E<i16, i32> { |
52 | 52 | // Check that low_align_const and high_align_const use the same constant |
53 | | - // CHECK: memcpy.{{.+}}(ptr align 4 %_0, ptr align 4 {{.*}}[[LOW_HIGH]]{{.*}}, i{{(32|64)}} 8, i1 false) |
| 53 | + // CHECK: memcpy.{{.+}}(ptr align 4 %_0, ptr align 4 {{.*}}@1{{.*}}, i{{(32|64)}} 8, i1 false) |
54 | 54 | *&E::A(0) |
55 | 55 | } |
0 commit comments