minix/external/bsd/llvm/dist/clang/test/CodeGen/ppc64-struct-onevect.c
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

13 lines
356 B
C

// REQUIRES: ppc64-registered-target
// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-linux-gnu -emit-llvm -o - %s | FileCheck %s
typedef float v4sf __attribute__ ((vector_size (16)));
struct s { v4sf v; };
v4sf foo (struct s a) {
return a.v;
}
// CHECK-LABEL: define <4 x float> @foo(<4 x float> inreg %a.coerce)
// CHECK: ret <4 x float> %a.coerce