xref: /aosp_15_r20/external/clang/test/CodeGen/ppc64-struct-onevect.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // REQUIRES: powerpc-registered-target
2*67e74705SXin Li // RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
3*67e74705SXin Li 
4*67e74705SXin Li typedef float v4sf __attribute__ ((vector_size (16)));
5*67e74705SXin Li 
6*67e74705SXin Li struct s { v4sf v; };
7*67e74705SXin Li 
foo(struct s a)8*67e74705SXin Li v4sf foo (struct s a) {
9*67e74705SXin Li   return a.v;
10*67e74705SXin Li }
11*67e74705SXin Li 
12*67e74705SXin Li // CHECK-LABEL: define <4 x float> @foo(<4 x float> inreg %a.coerce)
13*67e74705SXin Li // CHECK: ret <4 x float> %a.coerce
14