1// RUN:  %clang_cc1 -triple arm64_be-linux-gnu -ffreestanding -emit-llvm -O0 -o - %s | FileCheck %s
2
3struct bt3 { signed b2:10; signed b3:10; } b16;
4
5// The correct right-shift amount is 40 bits for big endian.
6signed callee_b0f(struct bt3 bp11) {
7// CHECK: = lshr i64 %{{.*}}, 40
8  return bp11.b2;
9}
10