@@ -60,7 +60,7 @@ unsigned read8_1() {
6060// LLVM: ret i32 [[RET]]
6161
6262// OGCG-LABEL: @_Z7read8_1v
63- // OGCG: [[BFLOAD:%.*]] = load i8, ptr getelementptr inbounds nuw (%struct.S1, ptr @a1 , i32 0, i32 1), align 1
63+ // OGCG: [[BFLOAD:%.*]] = load i8, ptr getelementptr inbounds nuw (%struct.S1, ptr {{.*}} , i32 0, i32 1), align 1
6464// OGCG-NEXT: [[BFCAST:%.*]] = zext i8 [[BFLOAD]] to i32
6565// OGCG-NEXT: ret i32 [[BFCAST]]
6666
@@ -104,7 +104,7 @@ unsigned read8_2() {
104104// LLVM: ret i32 [[RET]]
105105
106106// OGCG-LABEL: @_Z7read8_2v
107- // OGCG: [[BFLOAD:%.*]] = load i16, ptr getelementptr inbounds nuw (%struct.S1, ptr @a1 , i32 0, i32 2), align 2
107+ // OGCG: [[BFLOAD:%.*]] = load i16, ptr getelementptr inbounds nuw (%struct.S1, ptr {{.*}} , i32 0, i32 2), align 2
108108// OGCG-NEXT: [[BFLSHR:%.*]] = lshr i16 [[BFLOAD]], 4
109109// OGCG-NEXT: [[BFCLEAR:%.*]] = and i16 [[BFLSHR]], 255
110110// OGCG-NEXT: [[BFCAST:%.*]] = zext i16 [[BFCLEAR]] to i32
@@ -118,7 +118,7 @@ void write8_2() {
118118// CIR: [[CONST3:%.*]] = cir.const #cir.int<3> : !s32i
119119// CIR: [[INT3:%.*]] = cir.cast(integral, [[CONST3]] : !s32i), !u32i
120120// CIR: [[MEMBER:%.*]] = cir.get_member {{.*}}[2] {name = "f5"} : !cir.ptr<!rec_S1> -> !cir.ptr<!u16i>
121- // CIR: cir.set_bitfield align(2) (#bfi_f5, %3 : !cir.ptr<!u16i>, %1 : !u32i) -> !u32i
121+ // CIR: cir.set_bitfield align(2) (#bfi_f5, %3 : !cir.ptr<!u16i>, {{.*}} : !u32i) -> !u32i
122122
123123// LLVM-LABEL: @_Z8write8_2v
124124// LLVM: [[BFLOAD:%.*]] = load i16, ptr getelementptr inbounds nuw (i8, ptr {{.*}}, i64 2), align 2
@@ -131,7 +131,7 @@ void write8_2() {
131131// OGCG: [[BFLOAD:%.*]] = load i16, ptr getelementptr inbounds nuw (%struct.S1, ptr {{.*}}, i32 0, i32 2), align 2
132132// OGCG-NEXT: [[BFCLEAR:%.*]] = and i16 [[BFLOAD]], -4081
133133// OGCG-NEXT: [[BFSET:%.*]] = or i16 [[BFCLEAR]], 48
134- // OGCG-NEXT: store i16 [[BFSET]], ptr getelementptr inbounds nuw (%struct.S1, ptr @a1 , i32 0, i32 2), align 2
134+ // OGCG-NEXT: store i16 [[BFSET]], ptr getelementptr inbounds nuw (%struct.S1, ptr {{.*}} , i32 0, i32 2), align 2
135135// OGCG-NEXT: ret void
136136
137137unsigned read16_1 () {
@@ -214,7 +214,7 @@ void write16_2() {
214214// CIR: [[CONST5:%.*]] = cir.const #cir.int<5> : !s32i
215215// CIR: [[INT5:%.*]] = cir.cast(integral, [[CONST5]] : !s32i), !u64i
216216// CIR: [[MEMBER:%.*]] = cir.get_member {{.*}}[1] {name = "f2"} : !cir.ptr<!rec_S2> -> !cir.ptr<!u16i>
217- // CIR: cir.set_bitfield align(2) (#bfi_f2, [[MEMBER]] : !cir.ptr<!u16i>, %1 : !u64i) -> !u64i
217+ // CIR: cir.set_bitfield align(2) (#bfi_f2, [[MEMBER]] : !cir.ptr<!u16i>, {{.*}} : !u64i) -> !u64i
218218// CIR: cir.return
219219
220220// LLVM-LABEL: @_Z9write16_2v
0 commit comments