]> granicus.if.org Git - clang/commitdiff
Add a couple more tests for coverage.
authorEli Friedman <eli.friedman@gmail.com>
Sat, 2 Jan 2010 23:21:40 +0000 (23:21 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 2 Jan 2010 23:21:40 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92430 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ext-vector.c

index 6215323881fcdc9f2475d69b92438e9445afe1ac..daa18265a49f950ebe776cbc3e8b726797933ff7 100644 (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(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;
+}