Mercurial > hg > CbC > CbC_llvm
diff clang/test/CodeGen/malign-double.cpp @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line diff
--- a/clang/test/CodeGen/malign-double.cpp Mon May 25 11:55:54 2020 +0900 +++ b/clang/test/CodeGen/malign-double.cpp Tue Jun 08 06:07:14 2021 +0900 @@ -15,11 +15,11 @@ unsigned S1_align = __alignof(struct S1); unsigned S1_size = sizeof(struct S1); -// CHECK: @S1_align = global i32 1, align 4 -// CHECK: @S1_size = global i32 1, align 4 +// CHECK: @S1_align ={{.*}} global i32 1, align 4 +// CHECK: @S1_size ={{.*}} global i32 1, align 4 unsigned S1_c_offset = (unsigned) &((struct S1*) 0)->c; -// CHECK: @S1_c_offset = global i32 0, align 4 +// CHECK: @S1_c_offset ={{.*}} global i32 0, align 4 struct S2{ char c; @@ -30,17 +30,17 @@ unsigned S2_align = __alignof(struct S2); unsigned S2_size = sizeof(struct S2); -// CHECK: @S2_align = global i32 4, align 4 -// CHECK: @S2_size = global i32 8, align 4 +// CHECK: @S2_align ={{.*}} global i32 4, align 4 +// CHECK: @S2_size ={{.*}} global i32 8, align 4 unsigned S2_c_offset = (unsigned) &((struct S2*) 0)->c; unsigned S2_d_offset = (unsigned) &((struct S2*) 0)->d; unsigned S2_s_offset = (unsigned) &((struct S2*) 0)->s; unsigned S2_n_offset = (unsigned) &((struct S2*) 0)->n; -// CHECK: @S2_c_offset = global i32 0, align 4 -// CHECK: @S2_d_offset = global i32 1, align 4 -// CHECK: @S2_s_offset = global i32 2, align 4 -// CHECK: @S2_n_offset = global i32 4, align 4 +// CHECK: @S2_c_offset ={{.*}} global i32 0, align 4 +// CHECK: @S2_d_offset ={{.*}} global i32 1, align 4 +// CHECK: @S2_s_offset ={{.*}} global i32 2, align 4 +// CHECK: @S2_n_offset ={{.*}} global i32 4, align 4 struct S3 { char c; @@ -49,13 +49,13 @@ unsigned S3_align = __alignof(struct S3); unsigned S3_size = sizeof(struct S3); -// CHECK: @S3_align = global i32 2, align 4 -// CHECK: @S3_size = global i32 4, align 4 +// CHECK: @S3_align ={{.*}} global i32 2, align 4 +// CHECK: @S3_size ={{.*}} global i32 4, align 4 unsigned S3_c_offset = (unsigned) &((struct S3*) 0)->c; unsigned S3_s_offset = (unsigned) &((struct S3*) 0)->s; -// CHECK: @S3_c_offset = global i32 0, align 4 -// CHECK: @S3_s_offset = global i32 2, align 4 +// CHECK: @S3_c_offset ={{.*}} global i32 0, align 4 +// CHECK: @S3_s_offset ={{.*}} global i32 2, align 4 struct S4 { char c; @@ -65,19 +65,19 @@ unsigned S4_align = __alignof(struct S4); unsigned S4_size = sizeof(struct S4); -// CHECK-ON: @S4_align = global i32 8, align 4 -// CHECK-ON: @S4_size = global i32 24, align 4 -// CHECK-OFF: @S4_align = global i32 4, align 4 -// CHECK-OFF: @S4_size = global i32 16, align 4 +// CHECK-ON: @S4_align ={{.*}} global i32 8, align 4 +// CHECK-ON: @S4_size ={{.*}} global i32 24, align 4 +// CHECK-OFF: @S4_align ={{.*}} global i32 4, align 4 +// CHECK-OFF: @S4_size ={{.*}} global i32 16, align 4 unsigned S4_c_offset = (unsigned) &((struct S4*) 0)->c; unsigned S4_d_offset = (unsigned) &((struct S4*) 0)->d; unsigned S4_s_offset = (unsigned) &((struct S4*) 0)->s; -// CHECK: @S4_c_offset = global i32 0, align 4 -// CHECK-ON: @S4_d_offset = global i32 8, align 4 -// CHECK-ON: @S4_s_offset = global i32 16, align 4 -// CHECK-OFF: @S4_d_offset = global i32 4, align 4 -// CHECK-OFF: @S4_s_offset = global i32 12, align 4 +// CHECK: @S4_c_offset ={{.*}} global i32 0, align 4 +// CHECK-ON: @S4_d_offset ={{.*}} global i32 8, align 4 +// CHECK-ON: @S4_s_offset ={{.*}} global i32 16, align 4 +// CHECK-OFF: @S4_d_offset ={{.*}} global i32 4, align 4 +// CHECK-OFF: @S4_s_offset ={{.*}} global i32 12, align 4 union S5 { char c; @@ -87,15 +87,15 @@ unsigned S5_align = __alignof(union S5); unsigned S5_size = sizeof(union S5); -// CHECK: @S5_align = global i32 4, align 4 -// CHECK: @S5_size = global i32 4, align 4 +// CHECK: @S5_align ={{.*}} global i32 4, align 4 +// CHECK: @S5_size ={{.*}} global i32 4, align 4 unsigned S5_c_offset = (unsigned) &((union S5*) 0)->c; unsigned S5_s_offset = (unsigned) &((union S5*) 0)->s; unsigned S5_j_offset = (unsigned) &((union S5*) 0)->j; -// CHECK: @S5_c_offset = global i32 0, align 4 -// CHECK: @S5_s_offset = global i32 0, align 4 -// CHECK: @S5_j_offset = global i32 0, align 4 +// CHECK: @S5_c_offset ={{.*}} global i32 0, align 4 +// CHECK: @S5_s_offset ={{.*}} global i32 0, align 4 +// CHECK: @S5_j_offset ={{.*}} global i32 0, align 4 union S6 { char c; @@ -104,12 +104,12 @@ unsigned S6_align = __alignof(union S6); unsigned S6_size = sizeof(union S6); -// CHECK-ON: @S6_align = global i32 8, align 4 -// CHECK-ON: @S6_size = global i32 8, align 4 -// CHECK-OFF: @S6_align = global i32 4, align 4 -// CHECK-OFF: @S6_size = global i32 8, align 4 +// CHECK-ON: @S6_align ={{.*}} global i32 8, align 4 +// CHECK-ON: @S6_size ={{.*}} global i32 8, align 4 +// CHECK-OFF: @S6_align ={{.*}} global i32 4, align 4 +// CHECK-OFF: @S6_size ={{.*}} global i32 8, align 4 unsigned S6_c_offset = (unsigned) &((union S6*) 0)->c; unsigned S6_d_offset = (unsigned) &((union S6*) 0)->d; -// CHECK: @S6_c_offset = global i32 0, align 4 -// CHECK: @S6_d_offset = global i32 0, align 4 +// CHECK: @S6_c_offset ={{.*}} global i32 0, align 4 +// CHECK: @S6_d_offset ={{.*}} global i32 0, align 4