diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-01-02 23:21:40 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-01-02 23:21:40 +0000 |
commit | bb333722c1dcd69dfa38c2fbc4a4452ac6aab43d (patch) | |
tree | ca0b27be90c9c6b60f08cf46c86cca100f7379b2 /clang/test/CodeGen/ext-vector.c | |
parent | 81390dfcfde2c0c3e6c0754da2a3f79941c3765b (diff) | |
download | bcm5719-llvm-bb333722c1dcd69dfa38c2fbc4a4452ac6aab43d.tar.gz bcm5719-llvm-bb333722c1dcd69dfa38c2fbc4a4452ac6aab43d.zip |
Add a couple more tests for coverage.
llvm-svn: 92430
Diffstat (limited to 'clang/test/CodeGen/ext-vector.c')
-rw-r--r-- | clang/test/CodeGen/ext-vector.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/test/CodeGen/ext-vector.c b/clang/test/CodeGen/ext-vector.c index 6215323881f..daa18265a49 100644 --- a/clang/test/CodeGen/ext-vector.c +++ b/clang/test/CodeGen/ext-vector.c @@ -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(2) )) float float2; @@ -151,3 +151,12 @@ int4 test11a(); int test11() { return test11a().x; } + +int4 test12(int4 V) { + V.xyz = V.zyx; + return V; +} + +int4 test13(int4 *V) { + return V->zyxw; +} |