blob: f563596bdda34d66609b45d973d5a919740170d1 [file] [log] [blame]
James Molloy491cefb2014-05-07 17:41:15 +00001// 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}