blob: bb7473f742b029748414d2b7bfbc7f439c45c69c [file] [log] [blame]
Douglas Gregor59e8b3b2010-08-06 10:14:59 +00001// RUN: %clang_cc1 -faltivec -fno-lax-vector-conversions -triple powerpc-unknown-unknown -verify %s
2
3typedef int V4i __attribute__((vector_size(16)));
4
5void f(V4i a)
6{
7}
8
9void test()
10{
11 V4i vGCC;
12 vector int vAltiVec;
13
14 f(vAltiVec);
15 vGCC = vAltiVec;
Anton Yartsev3f8f2882010-11-18 03:19:30 +000016 bool res = vGCC > vAltiVec;
Douglas Gregor59e8b3b2010-08-06 10:14:59 +000017 vAltiVec = 0 ? vGCC : vGCC;
18}