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 | 9b71b97de1c52a66df7a62ac5aafb354f9afb209 (patch) | |
tree | 8ddcf73b16f0a6c12c73f0142991c18b3616a6a8 | |
parent | de8ac49d32e85d4f65f3e9624f5e21d631babbb0 (diff) |
Add a couple more tests for coverage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92430 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/ext-vector.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/CodeGen/ext-vector.c b/test/CodeGen/ext-vector.c index 6215323881..daa18265a4 100644 --- a/test/CodeGen/ext-vector.c +++ b/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; +} |