summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ext-vector.c
diff options
context:
space:
mode:
authorrdivacky <rdivacky@FreeBSD.org>2010-01-01 10:34:51 +0000
committerrdivacky <rdivacky@FreeBSD.org>2010-01-01 10:34:51 +0000
commitbb1e3bc1e0be2b8f891db46457a8943451bf4d8b (patch)
tree1e68501209c9133fbda8d45171e59f8d6f12dd55 /test/CodeGen/ext-vector.c
parent77212133072dc40f070a280af8217032f55a9eb4 (diff)
downloadFreeBSD-src-bb1e3bc1e0be2b8f891db46457a8943451bf4d8b.zip
FreeBSD-src-bb1e3bc1e0be2b8f891db46457a8943451bf4d8b.tar.gz
Updaet clang to 92395.
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