[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / clang / test / CodeGen / arm_function_epilog.cpp
blobe006441bb712e0844fece1f317ca818e8e1718f3
1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 -triple armv7-none-linux-androideabi -target-abi aapcs-linux -mfloat-abi hard -x c++ -emit-llvm %s -o - | FileCheck %s
4 struct Vec2 {
5 union { struct { float x, y; };
6 float data[2];
7 };
8 };
10 // CHECK: define{{.*}} arm_aapcs_vfpcc %struct.Vec2 @_Z7getVec2v()
11 // CHECK: ret %struct.Vec2
12 Vec2 getVec2() {
13 Vec2 out;
14 union { Vec2* v; unsigned char* u; } x;
15 x.v = &out;
16 return out;