summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ppc64-struct-onevect.c
blob: a5a1232ffa89b3bde7efe656a9c2a1b164b1c54c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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
OpenPOWER on IntegriCloud