summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/altivec.cpp
blob: cdfc00a5d43a5f33f660a5c6fe8574d6ce12f9a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -faltivec -fno-lax-vector-conversions -triple powerpc-unknown-unknown -verify %s

typedef int V4i __attribute__((vector_size(16)));

void f(V4i a)
{
}

void test()
{
  V4i vGCC;
  vector int vAltiVec;

  f(vAltiVec);
  vGCC = vAltiVec;
  vGCC = vGCC > vAltiVec;
  vAltiVec = 0 ? vGCC : vGCC;
}
OpenPOWER on IntegriCloud