summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/arm64-be-bitfield.c
blob: 2fe467bcf1a4155bb0b30693fba6be9e5fbce73a (plain)
1
2
3
4
5
6
7
8
9
// RUN:  %clang_cc1 -triple aarch64_be-linux-gnu -ffreestanding -emit-llvm -O0 -o - %s | FileCheck %s

struct bt3 { signed b2:10; signed b3:10; } b16;

// The correct right-shift amount is 40 bits for big endian.
signed callee_b0f(struct bt3 bp11) {
// CHECK: = lshr i64 %{{.*}}, 40
  return bp11.b2;
}
OpenPOWER on IntegriCloud