Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / arm64-be-bitfield.c
blob58c318539298475588b8d1520c6b6f9349267a08
1 // RUN: %clang_cc1 -triple aarch64_be-linux-gnu -ffreestanding -emit-llvm -O0 -o - %s | FileCheck --check-prefix IR %s
3 struct bt3 { signed b2:10; signed b3:10; } b16;
5 // Get the high 32-bits and then shift appropriately for big-endian.
6 signed callee_b0f(struct bt3 bp11) {
7 // IR: callee_b0f(i64 [[ARG:%.*]])
8 // IR: store i64 [[ARG]], ptr [[PTR:%.*]], align 8
9 // IR: call void @llvm.memcpy.p0.p0.i64(ptr {{.*}}, ptr align 8 [[PTR]], i64 4
10 return bp11.b2;