blob: 2fe467bcf1a4155bb0b30693fba6be9e5fbce73a [file] [log] [blame]
Tim Northover18b75122014-07-23 12:57:31 +00001// RUN: %clang_cc1 -triple aarch64_be-linux-gnu -ffreestanding -emit-llvm -O0 -o - %s | FileCheck %s
James Molloy491cefb2014-05-07 17:41:15 +00002
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}