Add a couple more tests for coverage.

llvm-svn: 92430
This commit is contained in:
Eli Friedman 2010-01-02 23:21:40 +00:00
parent 81390dfcfd
commit bb333722c1
1 changed files with 10 additions and 1 deletions

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -emit-llvm %s -o %t // RUN: %clang_cc1 -emit-llvm-only %s
typedef __attribute__(( ext_vector_type(4) )) float float4; typedef __attribute__(( ext_vector_type(4) )) float float4;
typedef __attribute__(( ext_vector_type(2) )) float float2; typedef __attribute__(( ext_vector_type(2) )) float float2;
@ -151,3 +151,12 @@ int4 test11a();
int test11() { int test11() {
return test11a().x; return test11a().x;
} }
int4 test12(int4 V) {
V.xyz = V.zyx;
return V;
}
int4 test13(int4 *V) {
return V->zyxw;
}