summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ext-vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ext-vector.c')
-rw-r--r--test/CodeGen/ext-vector.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/CodeGen/ext-vector.c b/test/CodeGen/ext-vector.c
index 6a246db..6215323 100644
--- a/test/CodeGen/ext-vector.c
+++ b/test/CodeGen/ext-vector.c
@@ -1,4 +1,4 @@
-// RUN: clang-cc -emit-llvm %s -o %t
+// RUN: %clang_cc1 -emit-llvm %s -o %t
typedef __attribute__(( ext_vector_type(4) )) float float4;
typedef __attribute__(( ext_vector_type(2) )) float float2;
@@ -138,3 +138,16 @@ void test8(float4 *ap, float4 *bp, int c) {
cmp = a == b;
cmp = a != b;
}
+
+int test9(int4 V) {
+ return V.xy.x;
+}
+
+int test10(int4 V) {
+ return (V+V).x;
+}
+
+int4 test11a();
+int test11() {
+ return test11a().x;
+}
OpenPOWER on IntegriCloud