2014-08-29 18:17:52 +08:00
|
|
|
// RUN: %clang_cc1 -triple aarch64_be-linux-gnu -ffreestanding -emit-llvm -O0 -o - %s | FileCheck --check-prefix IR %s
|
2014-05-08 01:41:15 +08:00
|
|
|
|
|
|
|
struct bt3 { signed b2:10; signed b3:10; } b16;
|
|
|
|
|
2014-08-29 18:17:52 +08:00
|
|
|
// Get the high 32-bits and then shift appropriately for big-endian.
|
2014-05-08 01:41:15 +08:00
|
|
|
signed callee_b0f(struct bt3 bp11) {
|
2014-08-29 18:17:52 +08:00
|
|
|
// IR: callee_b0f(i64 [[ARG:%.*]])
|
2015-07-10 19:31:43 +08:00
|
|
|
// IR: store i64 [[ARG]], i64* [[PTR:%.*]], align 8
|
2014-08-29 18:17:52 +08:00
|
|
|
// IR: [[BITCAST:%.*]] = bitcast i64* [[PTR]] to i8*
|
2015-11-19 13:55:59 +08:00
|
|
|
// IR: call void @llvm.memcpy.p0i8.p0i8.i64(i8* {{.*}}, i8* [[BITCAST]], i64 4
|
2014-05-08 01:41:15 +08:00
|
|
|
return bp11.b2;
|
|
|
|
}
|