llvm-project/clang/test/CodeGen/arm-bitfield-alignment.c
Nikita Popov 39db5e1ed8 [CodeGen] Convert tests to opaque pointers (NFC)
Conversion performed using the script at:
https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34

These are only tests where no manual fixup was required.
2022-10-07 14:22:00 +02:00

16 lines
373 B
C

// RUN: %clang_cc1 -triple arm-none-eabi -ffreestanding -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple aarch64 -ffreestanding -emit-llvm -o - %s | FileCheck %s
extern struct T {
int b0 : 8;
int b1 : 24;
int b2 : 1;
} g;
int func(void) {
return g.b1;
}
// CHECK: @g = external global %struct.T, align 4
// CHECK: %{{.*}} = load i64, ptr @g, align 4