================
@@ -36,17 +36,17 @@ typedef struct {
unsigned f; // type other than int above, not a bitfield
} S;
// CIR-DAG: #bfi_c = #cir.bitfield_info<name = "c", storage_type = !u64i,
size = 17, offset = 32, is_signed = true>
-// CIR-DAG: !rec_S = !cir.struct<"S" {bitfield !u64i, bitfield !u16i, data
!u32i}>
-// LLVM-DAG: %struct.S = type { i64, i16, i32 }
+// CIR-DAG: !rec_S = !cir.struct<"S" {bitfield !u64i, bitfield
!cir.array<!cir.array<!u8i x 3> x 0>, bitfield !u16i, bitfield
!cir.array<!cir.array<!u8i x 2> x 0>, data !u32i}>
+// LLVM-DAG: %struct.S = type { i64, [0 x i8], i16, [0 x i8], i32 }
// OGCG-DAG: %struct.S = type { i64, i16, i32 }
typedef struct {
int a : 3; // one bitfield with size < 8
unsigned b;
} T;
-// CIR-DAG: !rec_T = !cir.struct<"T" {bitfield !u8i, data !u32i}>
-// LLVM-DAG: %struct.T = type { i8, i32 }
+// CIR-DAG: !rec_T = !cir.struct<"T" {bitfield !u8i, bitfield
!cir.array<!cir.array<!u8i x 3> x 0>, data !u32i}>
----------------
adams381 wrote:
See explanation on `bitfields_be.c`.
https://github.com/llvm/llvm-project/pull/220069
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits