From 3176e97f130184ece0e1a21352c8124cc83ff24a Mon Sep 17 00:00:00 2001 From: dim Date: Wed, 30 Dec 2015 11:49:41 +0000 Subject: Vendor import of clang trunk r256633: https://llvm.org/svn/llvm-project/cfe/trunk@256633 --- test/CodeGen/arm_function_epilog.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/CodeGen/arm_function_epilog.cpp (limited to 'test/CodeGen/arm_function_epilog.cpp') diff --git a/test/CodeGen/arm_function_epilog.cpp b/test/CodeGen/arm_function_epilog.cpp new file mode 100644 index 0000000..0089507 --- /dev/null +++ b/test/CodeGen/arm_function_epilog.cpp @@ -0,0 +1,17 @@ +// REQUIRES: arm-registered-target +// RUN: %clang_cc1 -triple armv7-none-linux-androideabi -target-abi aapcs-linux -mfloat-abi hard -x c++ -emit-llvm %s -o - | FileCheck %s + +struct Vec2 { + union { struct { float x, y; }; + float data[2]; + }; +}; + +// CHECK: define arm_aapcs_vfpcc %struct.Vec2 @_Z7getVec2v() +// CHECK: ret %struct.Vec2 +Vec2 getVec2() { + Vec2 out; + union { Vec2* v; unsigned char* u; } x; + x.v = &out; + return out; +} -- cgit v1.1