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